For some reason, I can't remember how to printf a %. If I use something like
I just get nonsense. I'm just picking c back up, so some things are forgotten :SCode:printf("20\%");
Any help appreciated :)
Printable View
For some reason, I can't remember how to printf a %. If I use something like
I just get nonsense. I'm just picking c back up, so some things are forgotten :SCode:printf("20\%");
Any help appreciated :)
Use %% to get one %
Many thanks.
to print one %, use two.
Code:printf("%%");
In general it is safer to use:
Code:printf("%s", "<whatever you like goes here as none of this gets touched %s%f%d%.4u%%>");