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 / daniel

(99 * 100)/2 = 4950
The sum++ is performed 4950 times.

Is This Answer Correct ?    7 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is clrscr in c?

1171


Is Exception handling possible in c language?

2095


write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

4045


Can a file other than a .h file be included with #include?

1218


Is javascript based on c?

1115


Explain how can type-insensitive macros be created?

1042


Can a variable be both const and volatile?

1189


Which driver is a pure java driver

1689


What does volatile do?

1035


Explain 'bus error'?

1164


What is the code for 3 questions and answer check in VisualBasic.Net?

2207


What is pragma in c?

1281


Tell me about low level programming languages.

1188


Which is the memory area not included in C program? give the reason

1998


What is nested structure with example?

1134