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
Write a function that will take in a phone number and output all possible alphabetical combinations
How is a macro different from a function?
What is 2 d array in c?
What are multibyte characters?
What is function pointer c?
can anyone please tell about the nested interrupts?
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
What is formal argument?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures
What is a file descriptor in c?
Where is volatile variable stored?
write a c program to calculate sum of digits till it reduces to a single digit using recursion
What is the size of empty structure in c?
What is character constants?
What does node * mean?