Logo 
Search:

C Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C ProgrammingRSS Feeds

C programming practical question 20

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

Answer:

main()
{
int i=5;
printf("%d%d%d%d%d%d",i++,i--,++i,--i,i);
}


Answer:
45545


Explanation:
The arguments in a function call are pushed into the stack from left to right. The evaluation is by popping out from the stack. and the evaluation is from right to left, hence the result.

Share: 
 

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


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


Tagged: