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?
212
Declare your ch as
ch
unsigned char ch = 212 ;
And your printf will work.
2.1m questions
2.1m answers
60 comments
57.0k users