Printf the % symbol as plain text to a console window
Using Vim and gcc in Linux.
What I want that to do is print to a console screen like so:
Of course it doesn't work like that. The reason I want to do that is so that whenever I want to refer to the special character constants table I can just type a command in a console and up it will pop rather than having to leaf back through a booklet.
I also tried:
I couldn't find the answer to this problem either in my book or on these forums, perhaps I used the wrong search terms. I would be grateful for any help given!
printf("\\%d"); // Which also didn't work.
Thank you, please try to be forgiving as I am new to computers in general :)