#include int main(void) { int a=5; printf(\"%d\"+1,a); }
Output: d. I didn\'t get how the output is coming: d ?
You should do printf("%d", a+1). "%d" + 1 is a pointer to "d" inside an array of char ({'%','d','\0'}).
printf("%d", a+1)
"%d" + 1
"d"
char
{'%','d','\0'}