Declare your ch
as
unsigned char ch = 212 ;
And your printf will work.
More Related Contents:
- C: Weird conditional printf behavior [closed]
- Function does not return printf
- Please explain the difference in the printfs below
- What does %d mean? Why d and not another letter? [closed]
- decimal of numbers in c
- Correct format specifier for double in printf
- printf(“%p”) and casting to (void *)
- Printf variable number of decimals in float
- How to format a number using comma as thousands separator in C?
- What does “%.*s” mean in printf?
- What is the argument for printf that formats a long?
- How to printf “unsigned long” in C?
- using printf to print out floating values
- How to control the number of exponent digits after ‘e’ in C printf %e?
- How to use “zd” specifier with `printf()`?
- Unsigned values in C
- How to combine two 32-bit integers into one 64-bit integer?
- Centering strings with printf()
- Passing too many arguments to printf
- printf with “%d” of numbers starting with 0 (ex “0102”) giving unexpected answer (ex ‘”66″)
- What is the conversion specifier for printf that formats a long?
- Wrong format specifiers in scanf (or) printf
- Using printf with a non-null terminated string
- What primitive data type is time_t? [duplicate]
- printf string, variable length item
- Does C have a string type? [closed]
- How do I align a number like this in C?
- Turbo C++: Why does printf print expected values, when no variables are passed to it?
- printf() formatting for hexadecimal
- Is sprintf(buffer, “%s […]”, buffer, […]) safe?