info@avatto.com
+91-9920808017
16. The following program fragment if (a = 0) printf ("a is zero"); else printf ("a is not zero"); results in the printing of
a is zero
a is not zero
nothing
garbage
Your email address will not be published. Required fields are marked *
Report
Name
Email
Website
Save my name, email, and website in this browser for the next time I comment.
Comment
17. The following program fragment if ( a = 7 ) printf (" a is seven "); else printf (" a is not seven "); results in the printing of
a is even
a is not even
18. The following loop for ( putchar( 'c' ); putchar ( 'a' ); putchar ( ' r' )) putchar ( 't' ); outputs
a syntax error
cartrt
catrat
catratratratrat
19. The following loop for( i=1, j=10; i<6; ++i, --j ) printf ("%d %d", i, j ); prints
1 10 2 9 3 8 4 7 5 6
1 2 3 4 5 10 9 8 7 6
1 1 1 1 1 1 9 9 9 9 9
none of above
20. The following Program main() { int i = 5; if (i == 5) return; else printf (" is not five"); printf("over"); }
an execution error
printing of over
execution termination, without printing anything
Login with Facebook
Login with Google
Forgot your password?
Lost your password? Please enter your email address. You will receive mail with link to set new password.
Back to login