Examveda
Examveda

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

A. Run time error

B. 7

C. 8

D. Depends on compiler

Answer: Option B


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals