printf("\%");

\→\\
"→\"
%→%\

OK?