Vidyalelo
C Programming · Q125

C Fundamentals

Programming · C Programming · question 125

Q125

What will be the output of the following C code? #include void main() int k = 8; int m = 7; int z = k < m ? k = m : m++; printf("%d", z);

A.
Run time error
B.
7
Answer
C.
8
D.
Depends on compiler

Answer: Option B

Solution

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