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 static memory allocation?

1125


What are the advantages of the functions?

1117


Why c is called procedure oriented language?

1011


Which driver is a pure java driver

1554


What is bin sh c?

1010


What is typedf?

1083


show how link list can be used to repersent the following polynomial i) 5x+2

2222


What are identifiers and keywords in c?

1056


What is c value paradox explain?

1046


A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none

1172


Why void is used in c?

983


the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above

1218


Why is struct padding needed?

1049


why wipro wase

2270


How can you read a directory in a C program?

1109