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
What is storage class?
When do we get logical errors?
Are pointers integers in c?
If I have a char * variable pointing to the name of a function ..
How many types of sorting are there in c?
Explain the difference between exit() and _exit() function?
What are pointers? What are different types of pointers?
State the difference between x3 and x[3].
Is r written in c?
Do you have any idea about the use of "auto" keyword?
Are global variables static in c?
What is the acronym for ansi?
Explain how can I prevent another program from modifying part of a file that I am modifying?
What does the message "automatic aggregate intialization is an ansi feature" mean?
What is c definition?