16. Which command is used to skip the rest of a loop and carry on from the top of the loop again?
17. What is the output of the following program?
#include<stdio.h>
int c[10] = {1,2,3,4,5,6,7,8,9,10};
main()
{
int a, b=0;
for(a=0;a<10;++a)
if(c[a]%2 == 1)
b+=c[a];
printf("%d", b);
}
#include<stdio.h>
int c[10] = {1,2,3,4,5,6,7,8,9,10};
main()
{
int a, b=0;
for(a=0;a<10;++a)
if(c[a]%2 == 1)
b+=c[a];
printf("%d", b);
}
18. What is the output of the following statements?
for(i=10; i++; i<15)
printf("%d ", i);
for(i=10; i++; i<15)
printf("%d ", i);
19. The type of the controlling expression of a switch statement cannot be of the type ........
20. What's wrong in the following statement, provided k is a variable of type int?
for(k = 2, k <=12, k++)
for(k = 2, k <=12, k++)