How do you escape the % sign when using printf in C?
printf
printf(\"hello\\%\"); /* not like this */
you are using incorrect format specifier you should use %% for printing %. Your code should be:
%%
%
printf("hello%%");
Read more all format specifiers used in C.