Declare your ch
as
unsigned char ch = 212 ;
And your printf will work.
Related Posts:
- How to repeat a char using printf?
- Reading float using scanf in c
- Reading float using scanf in c
- How many spaces for tab character(\t)?
- Correct format specifier for double in printf
- Scanf/Printf double variable C
- Strings and character with printf
- printf() formatting for hexadecimal
- Printing hexadecimal characters in C
- What is the argument for printf that formats a long?
- What is the printf format specifier for bool?
- How to printf “unsigned long” in C?
- How I can print to stderr in C?
- Is there a printf converter to print in binary format?
- What does “%.*s” mean in printf?
- How to print a char array in C through printf?
- What does %s and %d mean in printf in the C language?
- How to printf a memory address in C
- Data argument not used by format strings in C
- How can one print a size_t variable portably using the printf family?
- %i or %d to print integer in C using printf()?
- How can you print multiple variables inside a string using printf?
- error: aggregate value used where an integer was expected
- C’s printf and fprintf(stdout,) are not printing
- Is there a way to have printf() properly print out an array (of floats, say)?
- How do you allow spaces to be entered using scanf?
- How to write to a file using open() and printf()?
- Using floats with sprintf() in embedded C
- Printf width specifier to maintain precision of floating-point value
- Which of sprintf/snprintf is more secure?
- Does C have a string type?
- Execution of printf() and Segmentation Fault
- printf format specifiers for uint32_t and size_t
- How do you read scanf until EOF in C?
- How to display hexadecimal numbers in C?
- Simple C scanf does not work? [duplicate]
- Two decimal places using printf( )
- How do you format an unsigned long long int using printf?
- What primitive data type is time_t? [duplicate]
- How to format strings using printf() to get equal length in the output
- How to format strings using printf() to get equal length in the output
- What do \t and \b do?
- What does %s mean inside a string literal?
- write() to stdout and printf output not interleaved?
- What does (~0L) mean?
- Two questions about basic C programs
- strdup() – what does it do in C?
- How to convert an int to string in C?
- When to use extern “C” in simple words? [duplicate]
- C compiler for Windows?
- Why use conio.h?
- How to track down a “double free or corruption” error
- JavaScript equivalent to printf/String.Format
- What is EOF in the C programming language?
- Reading from file using read() function
- What is the difference between ++i and i++?
- warning: assignment makes integer from pointer without a cast
- munmap_chunk(): invalid pointer
- Undefined reference to pow( ) in C, despite including math.h [duplicate]
- C programming, error: called object is not a function or function pointer
- How to convert an int to string in C?
- Process finished with exit code 11 | Error during malloc [duplicate]
- How does wait(NULL) exactly work?
- What does strcmp() exactly return in C?
- How to replicate vector in c?
- C language: float % float why expression must have integral type
- Reading \r (carriage return) vs \n (newline) from console with getc?
- How to convert integer to string in C?
- Invalid pointer error on invoking free() after malloc in C
- In C, how should I read a text file and print all strings
- What does “Size in TCHARs” means?
- return makes integer from pointer without a cast [-Wint-conversion] return candidate
- When and why to use malloc?
- C compile error: Id returned 1 exit status
- How do I concatenate const/literal strings in C?
- Efficient way to find task_struct by pid
- Why am I getting this memory access error ‘double free or corruption’?
- size of struct in C
- Anyone know how to solve the error of “collect2.exe: error: ld returned 1 exit status” when a program in C is running?
- How to iterate over a string in C?
- Where is the C auto keyword used?
- “No such file or directory” error in CodeBlocks
- What is the C equivalent to the C++ cin statement?
- Mapping a numeric range onto another
- Why are hexadecimal numbers prefixed with 0x?
- Uninitialized value was created by a heap allocation
- What does this GCC error “… relocation truncated to fit…” mean?
- Convert Little Endian to Big Endian
- How to write log base(2) in c/c++
- Tokenizing strings in C
- Standard function to replace character or substring in a char array?
- cc1.exe System Error – libwinpthread-1.dll missing – But it isn’t
- error: ISO C forbids nested functions – What’s wrong?
- Split string with multiple delimiters using strtok in C
- warning: missing terminating ” character [enabled by default]
- FFT in a single C-file
- How do I check if a string contains a certain character?
- fgetc(stdin) in a loop is producing strange behaviour
- malloc(sizeof(int)) vs malloc(sizeof(int *)) vs (int *)malloc(sizeof(int))
- Compiler gcc:error; no such file or directory