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 are the types of c language?
What is external variable in c?
Why main is used in c?
What is the difference between the expression “++a” and “a++”?
How do I determine whether a character is numeric, alphabetic, and so on?
Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.
Is this program statement valid? INT = 10.50;
can anyone please tell about the nested interrupts?
What is a structural principle?
What is infinite loop?
What does the error 'Null Pointer Assignment' mean and what causes this error?
What’s a signal? Explain what do I use signals for?
What is binary tree in c?
What are the benefits of organizational structure?
What is the most efficient way to store flag values?