How to print f% d literally
How to print f% literally
This is probably the simple answer. But I cannot find the answer.
Let's say I want:
printf( "printf(\"%d\", x );" );
I want the result to be literally: printf( "%d", x );
Is there a way to do this? If I just put it in the code I wrote above, the number ends up in% d, but I don't want anything to fit there. I just want literal% d.
+3
source to share