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

What is the explanation for the dangling pointer in c?

0 Answers  


What has to put when we are inserting as assembly language code into the C code? or When we are inserting as assembly language code into the C code we have to insert one thing at the start and of the assembly language. What are they?

2 Answers  


Explain about the constants which help in debugging?

0 Answers  


Explain c preprocessor?

0 Answers  


How are Structure passing and returning implemented by the complier?

0 Answers   TISL,






What are pointers? Why are they used?

0 Answers  


What is equivalent to ++i+++j?

0 Answers  


I came across some code that puts a (void) cast before each call to printf. Why?

0 Answers  


In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)

0 Answers   Wipro,


What is wrong in this statement? scanf(“%d”,whatnumber);

0 Answers  


what is the difference between strcpy() and memcpy() function?

2 Answers  


main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }

4 Answers  


Categories