Examveda
Examveda

Determine Output:
void main()
{
      int i=10;
      i=!i>14;
      printf("i=%d", i);
}

A. 10

B. 14

C. 0

D. 1

Answer: Option C

Solution(By Examveda Team)

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).


This Question Belongs to C Program >> C Miscellaneous

Join The Discussion

Comments ( 1 )

  1. Bhavin Jain
    Bhavin Jain :
    3 years ago

    wrong answer answer is error

Related Questions on C Miscellaneous