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
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
Is main is a keyword in c?
What are extern variables in c?
Why we use void main in c?
How would you use the functions fseek(), freed(), fwrite() and ftell()?
What is the c language function prototype?
write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.
Explain what is the difference between functions abs() and fabs()?
How does pointer work in c?
what are enumerations in C
What is nested structure with example?
Why void is used in c?
What is the stack in c?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
write a c program to find the sum of five entered numbers using an array named number