Here is my code
#include void main() { char ch = 129; printf(\"%d\", ch); }
I get the output as -127. What d
Your char is most likely an 8-bit signed integer that is stored using Two's complement. Such a variable can only represent numbers between -128 and 127. If you do "127+1" it wraps around to -128. So 129 is equivalent to -127.
char