Logo 
Search:

C Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C ProgrammingRSS Feeds

C programming practical question 125

  Shared By: Adah Miller    Date: Jan 24    Category: C Programming    Views: 71

Answer:

main()
{
char *p = “ayqm”;
char c;
c = ++*p++;
printf(“%c”,c);
}


Answer:
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.

Share: 
 

Didn't find what you were looking for? Find more on C programming practical question 125 Or get search suggestion and latest updates.


Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: