The question has nothing to do with CS50, so it could be voted as off-topic, but I personally find it curious. The question is that several years ago I wrote a program to convert an array of integers into a string, not in the sense in which the function itoa() does it, but in a chain of alphabetic characters only, in this case the number stored in the array is transformed into my wife's name.
#include <stdio.h>
int main(void)
{
int num[2] = {1769234766,10};
printf("%s",(char*)num);
}
The output is "Nati" including a new line character. I certainly do not know why this is so and I am unable to remember it, but when reviewing these old programs this one is torturing me (damn documentation). I have the feeling that something elementary escapes me but for my life I am not able to see it. It seems that the comparison with the ascii code has not been successful, I have tried to see some similitude in decimal, octal, hexadecimal, but I am not able to find a relationship, I would like someone to take a look to see if it is clearer than I (Well, it may be a lot to ask but I also try to help when I have a little time) Thank you.