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

Do array subscripts always start with zero?

1318


What is function prototype?

1159


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

1176


If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402

3933


Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

1116


What is a pointer in c?

1590


What is dangling pointer in c?

1257


What is I ++ in c programming?

1135


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

1091


write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.

2112


Why do some versions of toupper act strangely if given an upper-case letter?

1085


What is pragma c?

1134


will u please send me the placement papers to my mail???????????????????

1849


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

1111


Why do we use int main?

1110