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;..}
Answer Posted / 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 |
Post New Answer View All Answers
What is string concatenation in c?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
What are the parts of c program?
How does #define work?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
What is size of union in c?
What is the main difference between calloc () and malloc ()?
Explain bitwise shift operators?
How can I recover the file name given an open stream?
Explain is it valid to address one element beyond the end of an array?
Is it better to bitshift a value than to multiply by 2?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
Why is extern used in c?
What are preprocessor directives in c?
What is an operator?