Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / madhavi

1<=1, a=2 (true)(first while)
2<=2,a=3 (true)(second while)
3<=3,a=4 (false)(second while)

4<=1,a=5 (false)(first while)

the loops are in nesting ,the second while is the loop body
of the first while loop

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are local static variables? How can you use them?

1084


What is union and structure?

1042


What is the time and space complexities of merge sort and when is it preferred over quick sort?

1016


What is pragma in c?

1133


Explain pointers in c programming?

1066


What is a c token and types of c tokens?

1014


Should a function contain a return statement if it does not return a value?

1024


What is define c?

1003


can we implement multi-threads in c.

1091


Explain the use of function toupper() with and example code?

1081


What is the difference between declaring a variable and defining a variable?

1188


Do pointers take up memory?

1086


Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?

1021


In a byte, what is the maximum decimal number that you can accommodate?

1075


What are dangling pointers? How are dangling pointers different from memory leaks?

1234