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()

{

while(1){

if(printf("%d",printf("%d")))

break;

else

continue;

}

}

Consider a part of a loop as shown below.


Loading

Practice Control Instructions – Consider a part of a loop as shown below.


for (i = 0; i < = 10000; i++)

{

:

:

if (error < 0.005)

break;

}


The above loop will?

What will be the output of the following program.

Loading

Practice Control Instructions – What will be the output of the following program.


void main()
{
int c[ ]={2.8,3.4,4,6.7,5};
int j,*p=c,*q=c;
for(j=0;j<5;j++) {
printf(" %d ",*c);
++q;
}
for(j=0;j<5;j++){
printf(" %d ",*p);
++p;
}
}

How many times will the following loop be executed in below C program?

Loading

Practice Control Instructions – How many times will the following loop be executed in below C program?


void main()

{

x=5;

if (x = 1) {

x++;

}

}

How many times will the following loop be executed if the input data i

Loading

Practice Control Instructions – How many times will the following loop be executed if the input data item is 01234?


while (c = getchar ()! = 0) {
}

What will be the output of the below program?

			  		

Loading

Practice Control Instructions – What will be the output of the below program?


#include
int main(){
for(printf("1");!printf("0");printf("2"))
printf("Aditya");
return 0;
}

The for statement which can precede a loop to be executed 50 times or

Loading

Practice Control Instructions – The for statement which can precede a loop to be executed 50 times or till a boolean variable

If C is a variable initialized to 1. how many times the following lo

Loading

Practice Control Instructions – If C is a variable initialized to 1. how many times the following loop will be executed?


while ((c > 0) && (c < 60)) {

loop body

c ++; }

A “switch” statement is used to

Loading

Practice Control Instructions – A “switch” statement is used to

What is the output of the following program?

Loading

Practice Control Instructions – What is the output of the following program?


void main()

{

int B, X, Y, Z;

X=1; Y=2; Z=3;

jf ((X > 1) || (Y > 1))

if (Z > 1)

printf ("O.K /n");

else break;

if((X > 1 && (Z > 3))

printf ("Bye /n");

printf ("Hello!");

}

What is the output of the following problem ?

Loading

Practice Control Instructions – What is the output of the following problem ?


#include
int main()
{
int i;
for (i=9;i<13; i++)
printf("%d %0x ",i,i);
return 0;
}