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 / subha raman
The operation in for-loop is "i--"..so it will print the
decremented value first..hence the output will be:
4
3
2
1
0
| Is This Answer Correct ? | 14 Yes | 16 No |
Post New Answer View All Answers
Why c is a procedural language?
How can I determine whether a machines byte order is big-endian or little-endian?
What oops means?
Explain bitwise shift operators?
Explain the difference between call by value and call by reference in c language?
What is the scope of static variable in c?
Write a program to check armstrong number in c?
What is the best way of making my program efficient?
How to find a missed value, if you want to store 100 values in a 99 sized array?
When can you use a pointer with a function?
write a program to rearrange the array such way that all even elements should come first and next come odd
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
In C, What is the #line used for?
How can I find out if there are characters available for reading?