

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output of the following C code?#include <stdio.h> int main() { int n1 = 5, n2 = 3; int n3 = (n2++) ? 2 : n2 == 1 && n1; printf("%d n", n3); return 0; } |
A. | 1 |
B. | 2 |
C. | 3 |
D. | 4 |
E. | 5 |
Answer» C. 3 | |