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 / suresh reddy
The correct answer is
5
3
1
because
in for loop "i--" statement is there and again in printf
statement "i--" is there.
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
How can I call a function with an argument list built up at run time?
What is a loop?
How can I open a file so that other programs can update it at the same time?
What is the significance of an algorithm to C programming?
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
What are the advantages of Macro over function?
Why doesnt long int work?
What is indirection?
Differentiate between new and malloc(), delete and free() ?
explain what are actual arguments?
What is nested structure?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.
What is pointer & why it is used?
What are the 4 types of organizational structures?