Quote:
Originally Posted by velhari Another solution is,
int d=5;
printf("additon of %d + 1 = %d",d++); |
output of the above code will be
addition of 5 + 1 =
because the second parameter for the last %d is missing
so it should be like this
int d=5; printf("additon of %d + 1 = %d",d,d+1);
to get the out as follows
adition of 5 + 1 is 6