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...

Determine the code below, tell me exactly how many times is
the operation sum++ performed ?

for ( i = 0; i < 100; i++ )
for ( j = 100; j > 100 - i; j--)
sum++;

Answer Posted / anil

0 times bcoz everytime it enters second loop condition is
not satisfied ,thus comes out of loop.

Is This Answer Correct ?    14 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is storage class?

1019


When do we get logical errors?

1076


Are pointers integers in c?

1031


If I have a char * variable pointing to the name of a function ..

1117


How many types of sorting are there in c?

1013


Explain the difference between exit() and _exit() function?

1114


What are pointers? What are different types of pointers?

1060


State the difference between x3 and x[3].

1054


Is r written in c?

1114


Do you have any idea about the use of "auto" keyword?

1052


Are global variables static in c?

1112


What is the acronym for ansi?

999


Explain how can I prevent another program from modifying part of a file that I am modifying?

1041


What does the message "automatic aggregate intialization is an ansi feature" mean?

1146


What is c definition?

1200