I am a beginner in C, and I was wondering why this program does not print % sign?
The code is:
#include<stdio.h>
main()
{
printf("%");
getch();
}
Your problem is that you have to change:
printf("%");
to
printf("%%");
Or you could use ASCII code and write:
printf("%c", 37);
:)