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
Write a program to check palindrome number in c programming?
Explain the difference between ++u and u++?
What will be your course of action for a push operation?
What are the different types of pointers used in c language?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
Can you write a programmer for FACTORIAL using recursion?
Is swift based on c?
Why double pointer is used in c?
What is c basic?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
Is c a great language, or what?
Are local variables initialized to zero by default in c?
Is int a keyword in c?
What is the difference between int main and void main?
What is the use of function in c?