Trần Khánh Ly
New member
What will be the output of the following C code?
A. Run time error
B. 7
C. 8
D. Depends on compiler
Code:
#include <stdio.h>
void main()
{
int k = 8;
int m = 7;
int z = k < m ? k = m : m++;
printf("%d", z);
}
B. 7
C. 8
D. Depends on compiler