20 December 2010

Print % using printf in C

Problem:

How can you print % using the printf function? (Remember % is used as a format specifier!!!)
Very Simple, following cases are examples


Cheers!!
Jack

1 comment:

Unknown said...

you can do this, too :

printf ("%c", '%');