The output of the following program
main( )
{
int a = 1, b = 2, c = 3;
printf("%d", a += (a += 3, 5, a));
}
will be
A. | 8 |
B. | 12 |
C. | 9 |
D. | 6 |
Option: A Explanation : Click on Discuss to view users comments. |
The statement printf ("%d", 10 ? 0 ? 5 : 11 : 12 ) ;
A. | 10 |
B. | 0 |
C. | 12 |
D. | 11 |
Option: D Explanation : Click on Discuss to view users comments. |
The statement printf ("%d", ++5) ; prints
A. | 5 |
B. | 6 |
C. | an error message |
D. | garbage |
Option: C Explanation : Click on Discuss to view users comments. |