What will be the value of sum after the following C program is execute

Loading

Practice Control Instructions – What will be the value of sum after the following C program is executed?


void main()

{

int sum, index

sum= 1;

index= 9;

do {

index = index - 1;

sum =2* sum;

} while(index > 9);

}

What will be output of the following “c” code?

Loading

Practice Control Instructions – What will be output of the following “c” code?


#include
void main()
{
char ch;
for(ch =1; ch<=255; ch++)
printf("%d %c", ch, ch);
}

What will be output of the following “c” code?


Loading

Practice Control Instructions – What will be output of the following “c” code?


#include



void main() {

int i= 0;

for(; i++; printf("%d", i));

printf("%d", i);

}

What is the output of the following C Program?


Loading

Practice Control Instructions – What is the output of the following C Program?


#include

void main()

{

for (i = 3; i < 15; i += 3);

printf ("%d", i);

}