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 / daniel
(99 * 100)/2 = 4950
The sum++ is performed 4950 times.
| Is This Answer Correct ? | 7 Yes | 7 No |
Post New Answer View All Answers
What is clrscr in c?
Is Exception handling possible in c language?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
Can a file other than a .h file be included with #include?
Is javascript based on c?
Explain how can type-insensitive macros be created?
Can a variable be both const and volatile?
Which driver is a pure java driver
What does volatile do?
Explain 'bus error'?
What is the code for 3 questions and answer check in VisualBasic.Net?
What is pragma in c?
Tell me about low level programming languages.
Which is the memory area not included in C program? give the reason
What is nested structure with example?