Hello. Can someone please tell me what happens when you cast a large number to a char? For example:
char string[8];
int num = 2040;
string[0] = (char) num;
I'm working my way through a larger program to figure out what it does, but I'm not sure how to handle this situation. Normally, I'd just convert it to its corresponding ASCII character, but 2040 is obviously too large. What gets stored in string[0]? Is it just a series of characters, '2', '0', '4', '0'?