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

when i=0
j=100 and 100>100-1(false) come out of the loop and the sum
is executed 0 times

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to check palindrome number in c programming?

967


Explain the difference between ++u and u++?

1071


What will be your course of action for a push operation?

1053


What are the different types of pointers used in c language?

997


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

1014


Can you write a programmer for FACTORIAL using recursion?

989


Is swift based on c?

1057


Why double pointer is used in c?

991


What is c basic?

1127


any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

1080


Is c a great language, or what?

1051


Are local variables initialized to zero by default in c?

985


Is int a keyword in c?

909


What is the difference between int main and void main?

1001


What is the use of function in c?

1145