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
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1
Why c is called free form language?
What is a static variable in c?
Give basis knowledge of web designing ...
Why is sizeof () an operator and not a function?
What is 1f in c?
What is table lookup in c?
What are run-time errors?
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.
explain how do you use macro?
What are identifiers in c?
What are different types of operators?
What does volatile do?
In C programming, what command or code can be used to determine if a number of odd or even?
What is array of structure in c?