how does the for loop work actually..suppose for the
following program how it ll work plz explain to me
for(i=5;i>=0;i--)
prinf(i--);
Answer Posted / ratan
All above answers are wrong.
Correct answer is
5
3
1.
This is because the value "i" is decremented twice (once in
the loop and second time in the printf() function).
| Is This Answer Correct ? | 24 Yes | 2 No |
Post New Answer View All Answers
What is local and global variable in c?
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
What is the best way of making my program efficient?
What is the maximum no. of arguments that can be given in a command line in C.?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
What is uint8 in c?
Explain how can I open a file so that other programs can update it at the same time?
Explain c preprocessor?
What is the difference between scanf and fscanf?
difference between Low, Middle, High Level languages in c ?
diff between exptected result and requirement?
Explain what are the __date__ and __time__ preprocessor commands?
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none