Examveda

What will be the output of the following C code?
#include <stdio.h>
int main()
{
    if (~0 == 1)
        printf("yes\n");
    else
        printf("no\n");
}

A. yes

B. no

C. compile time error

D. undefined

Answer: Option B


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals