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 are the 5 types of organizational structures?

1133


What is a memory leak? How to avoid it?

1422


to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?

2248


What are pointers? What are stacks and queues?

1217


Tell us the use of fflush() function in c language?

1201


What does void main () mean?

1297


How can you tell whether two strings are the same?

1307


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1087


Explain how does flowchart help in writing a program?

1168


How can I read in an object file and jump to locations in it?

1070


What is switch in c?

1159


What are the advantages and disadvantages of c language?

1070


Do you know what are the properties of union in c?

1131


What is nested structure?

1094


Describe the order of precedence with regards to operators in C.

1100