1.

What will be the output of the following C code?
#include <stdio.h>
void main()
{
int n1 = 15;
int n2 = 16;
n1 < n2 ? n1 = n1 + 1 : n2 = n2 + 1;
printf("%d", n1);
}

A. 15
B. 16
C. Compilation Error
D. Runtime Error
E. None of these
Answer» D. Runtime Error


Discussion

No Comment Found

Related MCQs