Examveda

What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int y = 0;
    if (1 |(y = 1))
        printf("y is %d\n", y);
    else
        printf("%d\n", y);
 
}

A. y is 1

B. 1

C. run time error

D. undefined

Answer: Option A


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals