Programming in C - Decision Making and Looping

36. The following statement
if (a > b)
if (c > b)
printf("one");
else
if (c == a) printf('two');
else printf("three");
else printf("four");

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 *


37. Code in the previous question can never print

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 *


38. The following program fragment
int x = 4, y = x, i;
for (i = 1; i < 4; ++i)
x += x;
outputs an integer that is same as

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 *


39. Using goto inside for loop is equivalent to using

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 *


40. The following program fragment
int x[5][5], i, j;
for (i = 0; i < 5, ++i;)
for(j = 0; j < 5 ; j++)
x[i][j] = x[j][i];

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 *