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

difference between semaphores and mutex?

1 Answers  


main() { printf(5+"Vidyarthi Computers"); }

6 Answers  


main() { char *p1="Name"; char *p2; p2=(char *)malloc(20); while(*p2++=*p1++); printf("%s\n",p2); } what is the output?

7 Answers   AMCAT, HCL, Ramco, Zycus Infotech,


helllo sir give me some information of the basic information the c as printf ,scanf , %d ,%f and why is the main use of these.

3 Answers  


what is diff b/w huge & far & near pointer??

1 Answers   HCL,






What's the difference between struct x1 { ... }; and typedef struct { ... } x2; ?

3 Answers  


How arrays can be passed to a user defined function

0 Answers  


What is pointer in c?

0 Answers  


What will the code below print when it is executed?   int x = 3, y = 4;         if (x = 4)                 y = 5;         else                 y = 2;         printf ("x=%d, y=%d ",x,y);

0 Answers  


Place the #include statement must be written in the program?

0 Answers  


Between macros and functions,which is better to use and why?

0 Answers  


How can I copy just a portion of a string?

0 Answers  


Categories