Logo 
Search:

C Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C ProgrammingRSS Feeds

C programming practical question 14

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

Answer:

main()
{
int i=10;
i=!i>14;
Printf ("i=%d",i);
}


Answer:
i=0


Explanation:
In the expression !i>14 , NOT (!) operator has more precedence than ‘ >’ symbol. ! is a unary logical operator. !i (!10) is 0 (not of true is false). 0>14 is false (zero).

Share: 
 

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


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


Tagged: