I am trying to print char as positive value:
char ch = 212;
printf("%u", ch);
but I get:
4294967252
How I can get 212
in the output?
c++printf
I am trying to print char as positive value:
char ch = 212;
printf("%u", ch);
but I get:
4294967252
How I can get 212
in the output?
Best Answer
Declare your
ch
asAnd your printf will work.