which of the following go out of the loopo if expn 2
becoming false
a.while(expn 1){...if(expn 2)continue;}
b.while(!expn 1){if(expn 2)continue;...}
c.do{..if(expn 1)continue;..}while(expn 2);
d.while(!expn 2){if(expn 1)continue;..}

Answers were Sorted based on User's Feedback



which of the following go out of the loopo if expn 2 becoming false a.while(expn 1){...if(expn ..

Answer / jai

c) Since expn2 becoming false will terminate do-while loop.

Is This Answer Correct ?    10 Yes 0 No

which of the following go out of the loopo if expn 2 becoming false a.while(expn 1){...if(expn ..

Answer / prashanth

answer: c

here in do-while:
fist the statements inside the block gets executed.then
when it checks the condition ,it will be come out of loop
because conditions goes wrong

Is This Answer Correct ?    3 Yes 0 No

which of the following go out of the loopo if expn 2 becoming false a.while(expn 1){...if(expn ..

Answer / mannucse

d

Is This Answer Correct ?    0 Yes 4 No

which of the following go out of the loopo if expn 2 becoming false a.while(expn 1){...if(expn ..

Answer / bipin chandra sai.s

ans is d,bcoz d is only the loop statement in the option

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More C Interview Questions

Explain what does the format %10.2 mean when included in a printf statement?

0 Answers  


Are the expressions * ptr ++ and ++ * ptr same?

0 Answers  


struct node {struct node*temp,*new} prinf("%d",sizeof(struct node));

2 Answers  


main() { int a=5; printf(?%d,%d,%d\n?,a,a< <2,a>>2); } Answer: 5,20,1 please explain this code in detail

6 Answers   TCS,


Is main is a keyword in c?

0 Answers  






void main() {int a[5],i,b=16; for(i=0;i<5;i++) a[i]=2*i; f(a,5,b); for(i=0;i<5;i++) printf("\n %d",a[i]); printf("\n %d",b); } f(int *x,int n,int y) { int i; for(i=0;i<n;i++) *(x+i)+=2; y=y+2; }wat r the errors in the prg.and improvise the prg to get o/p.?

2 Answers   TCS,


Explain b+ tree?

0 Answers  


what is the difference between malloc() and calloc() function?

1 Answers  


WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c file management?

28 Answers   3D PLM, Code Studio, Deltech, IBM,


Can we write a program without main() function?

9 Answers  


How do we declare variables in c?

0 Answers  


What is output redirection?

0 Answers  


Categories