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
How do you use a 'Local Block'?
How can you increase the size of a dynamically allocated array?
Write a program to print all permutations of a given string.
What is meant by 'bit masking'?
Why is extern used in c?
What does node * mean?
What is volatile keyword in c?
What is function what are the types of function?
Where are the auto variables stored?
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
What are extern variables in c?
What are enums in c?
What is the scope of global variable in c?
What is the explanation for modular programming?
Linked lists -- can you tell me how to check whether a linked list is circular?