Here is my code
#include void main() { char ch = 129; printf(\"%d\", ch); }
I get the output as -127. What d
It means you ran into undefined behavior.
Any outcome is possible.
char ch=129; is UB because 129 is not a representable value for a char for you specific setup.
char ch=129;
129
char