Vidyalelo
C Programming · Q269

C Fundamentals

Programming · C Programming · question 269

Q269

What will be the output of the following C code? #include int main() int y = 0; if (1 |(y = 1)) printf("y is %d ", y); else printf("%d ", y);

A.
y is 1
Answer
B.
1
C.
run time error
D.
undefined

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board