Logo 
Search:

C Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C ProgrammingRSS Feeds

C programming practical question 105

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

Answer:

main()
{
int a[10];
printf("%d",*a+1-*a+3);
}


Answer:
4


Explanation:
*a and -*a cancels out. The result is as simple as 1 + 3 = 4 !

Share: 
 

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


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


Tagged: