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
Do array subscripts always start with zero?
What is function prototype?
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
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
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What is a pointer in c?
What is dangling pointer in c?
What is I ++ in c programming?
Do you know what are the properties of union in c?
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.
Why do some versions of toupper act strangely if given an upper-case letter?
What is pragma c?
will u please send me the placement papers to my mail???????????????????
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.
Why do we use int main?