How to escape the % (percent) sign in C’s printf

How do you escape the % sign when using printf in C?

printf("hello\%"); /* not like this */

13 Answers
13

Leave a Comment