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 / binz
Answer is
5
3
1
But you should change your printf statement to printf("%d",
i--);
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is || operator and how does it function in a program?
What is getch c?
What is pass by reference in functions?
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
What is the difference between memcpy and memmove?
an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
What are identifiers and keywords in c?
What are dangling pointers in c?
Does c have enums?
What would be an example of a structure analogous to structure c?
Under what circumstances does a name clash occur?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above
What is volatile variable in c with example?