Hello. Can someone please tell me what happens when you cast a large number to a char? For example:
char string; int num = 2040; string = (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? Is it just a series of characters, '2', '0', '4', '0'?
Edited 6 Years Ago by kendaop: n/a