How to printf %d literally
It’s probably a simple answer. But I can’t seem to find the answer.
Let’s say I want to:
printf( "printf(\"%d\", x );" );
I want the output to literally be: printf( "%d", x );
Is there a way to do it? If I just put in the code that I wrote above, a number gets placed into %d, but I don’t want anything placed in there. I just want the literal %d.
Escape the
%with another%: