Programming in C - Decision Making and Looping

16. The following program fragment
if (a = 0) printf ("a is zero");
else printf ("a is not zero");
results in the printing of

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


17. The following program fragment
if ( a = 7 )
printf (" a is seven ");
else
printf (" a is not seven ");
results in the printing of

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


18. The following loop
for ( putchar( 'c' ); putchar ( 'a' ); putchar ( ' r' ))
putchar ( 't' );
outputs

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


19. The following loop
for( i=1, j=10; i<6; ++i, --j )
printf ("%d %d", i, j );
prints

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


20. The following Program
main()
{
int i = 5;
if (i == 5) return;
else printf (" is not five");
printf("over");
}

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *