Ask Question

How can I print an int as a char in C?

+4
Answers (2)
  1. 21 September, 17:15
    0
    Use a char format specifier instead of an integer format specifier. C will automatically print the integer as a character, e. g. 97 will print as 'a'.
  2. 21 September, 17:23
    0
    Convert it to a char and print it
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “How can I print an int as a char in C? ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers