Logo 
Search:

C Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C ProgrammingRSS Feeds

C programming practical question 76

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

Answer:

main()
{
int i=_l_abc(10);
printf("%d\n",--i);
}
int _l_abc(int i)
{
return(i++);
}


Answer:
9


Explanation:
return(i++) it will first return i and then increments. i.e. 10 will be returned.

Share: 
 

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


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


Tagged: