I was just completing my assignment when I noticed that the text after the %
symbol in double quotes is not printing. Here is a very easy example to show this:
//program
#include<stdio.h>
int main()
{
printf("remainder of 5%2 is : %d",5%2);//here %2 is not printing
return 0;
}
output:
remainder of 5 is : 1
Only the %2
is not printed by printf()
rest everything is fine.