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 / sindhura
it gives an error ,because prinf statement not given
correctly.if the printf statement is given as printf("\t%d",i--)
then the output of the prgm will be,
5 4 3 2 1 0
| Is This Answer Correct ? | 2 Yes | 10 No |
Post New Answer View All Answers
How are Structure passing and returning implemented by the complier?
What is the difference between void main and main in c?
How can I write a function analogous to scanf?
If I have a char * variable pointing to the name of a function ..
How is actual parameter different from the formal parameter?
What is wrong in this statement? scanf(ā%dā,whatnumber);
Is c easy to learn?
Is it better to use malloc() or calloc()?
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
In a switch statement, explain what will happen if a break statement is omitted?
Is calloc better than malloc?
Write a program to print all permutations of a given string.
When should the volatile modifier be used?
How can you determine the maximum value that a numeric variable can hold?
Difference between goto, long jmp() and setjmp()?