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
int i=10; printf("%d %d %d", i, i=20, i);
how to write a c program to print list of fruits in alpabetical order?
Why string is used in c?
Using which language Test cases are added in .ptu file of RTRT unit testing???
Difference between goto, long jmp() and setjmp()?
What was noalias and what ever happened to it?
Can the size of an array be declared at runtime?
How can you tell whether a program was compiled using c versus c++?
What are header files in c?
write a program to concatenation the string using switch case?
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
What is a node in c?
What are data structures in c and how to use them?
What is unary operator?
What is a 'null pointer assignment' error?