Ex - 2 what is the output?:
main()
{
char *p = “ayqm”;
char c;
c = ++*p++;
printf(“%c”,c);
}
Ans:
b
Explanation:
There is no difference between the expression ++*(p++) and ++*p++. Parenthesis just works as a visual clue for the reader to see which expression is first evaluated.
|