How do you escape the % sign when using printf in C?
printf
printf(\"hello\\%\"); /* not like this */
If there are no formats in the string, you can use puts (or fputs):
puts("hello%");
if there is a format in the string:
printf("%.2f%%", 53.2);
As noted in the comments, puts appends a \n to the output and fputs does not.
puts
\n
fputs