

MCQOPTIONS
Saved Bookmarks
1. |
Which of the following is the correct output for the program given below?
int main ( ) { int a, b, c; a = b = c = 1; c = ++a || ++b && ++c; printf ( "a = %d b = %d c = %d n", a , b, c); return 0; } |
A. | a = 2 b = 1 c = 1 |
B. | a = 2 b = 2 c = 2 |
C. | a = 2 b = 2 c = 1 |
D. | a = 1 b = 2 c = 1 |
Answer» B. a = 2 b = 2 c = 2 | |