As we know that there are various format specifiers in C like %d, %f, %c etc, to help us print characters or other data types. We normally use these specifiers along with the printf() function to print any variables. But there is also a way to print characters specifically without the use of %c format specifier. This can be obtained by using the below-shown method to get the character value of any ASCII codes of any particular character.
G E E K S
This article is contributed by Chinmoy Lenka. If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.
- Print a number 100 times without using loop, recursion and macro expansion in C?
- Benefits of C language over other programming languages
- CHAR_BIT in C
- C program to print a string without any quote (singe or double) in the program
- Execute both if and else statements in C/C++ simultaneously
- Print "Hello World" in C/C++ without using any header file
- How to find size of array in C/C++ without using sizeof ?
- How to print a variable name in C?
- Data Types in C
- Write your own memcpy() and memmove()
- How to write a running C code without main()?
- Convert a floating point number to string in C
- Program to compute Log n
- Implement Your Own sizeof
- Write a C program to print "Geeks for Geeks" without using a semicolon