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 the difference between procedural and functional programming?

1076


What is unsigned int in c?

1000


How pointer is different from array?

1076


Why string is used in c?

1008


One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.

2642


What do you mean by command line argument?

1175


Can a variable be both static and volatile in c?

1040


What is the use of pointers in C?

1080


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

2778


difference between native and cross compilers

2125


How would you use the functions fseek(), freed(), fwrite() and ftell()?

1166


I came across some code that puts a (void) cast before each call to printf. Why?

1220


write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a

1951


What is array of structure in c programming?

1290


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15807