void main()
{
int a=1;
while(a++<=1)
while(a++<=2);
}

Answer Posted / sabir

this program execute at one both while are working becouse
a++ increase value after while statement that by both are
execute at once

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above

620


What is local and global variable in c?

627


write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.

1991


Do variables need to be initialized?

627


Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

1504






Can we add pointers together?

625


What is the difference between a function and a method in c?

571


What is the purpose of ftell?

610


Differentiate between Macro and ordinary definition.

740


What are the advantages and disadvantages of a heap?

716


write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1

3315


Is it possible to execute code even after the program exits the main() function?

832


Explain what is the benefit of using #define to declare a constant?

616


What is the significance of c program algorithms?

690


Explain how can I write functions that take a variable number of arguments?

621