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
What the advantages of using Unions?
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
Explain what is the difference between functions getch() and getche()?
Write the syntax and purpose of a switch statement in C.
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
What is difference between structure and union in c programming?
What is a global variable in c?
Here is a good puzzle: how do you write a program which produces its own source code as output?
How do you define structure?
What is sorting in c plus plus?
What are the types of pointers in c?
How do you search data in a data file using random access method?
What does %c do in c?
What is masking?
Can the “if” function be used in comparing strings?