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

my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

1562


Is main is a keyword in c?

1088


What are extern variables in c?

968


Why we use void main in c?

1130


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

1127


What is the c language function prototype?

1059


write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.

2836


Explain what is the difference between functions abs() and fabs()?

1133


How does pointer work in c?

1099


what are enumerations in C

1136


What is nested structure with example?

1042


Why void is used in c?

985


What is the stack in c?

1106


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1082


write a c program to find the sum of five entered numbers using an array named number

2098