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 / preshit
o/p will b
4 2 0
bcoz first i=5 ok then condition after taht ok so printf
will decrement i, so o/p 4
then it decrement it twice for 2 times
OR
it will give syntax error if printf(i--)is wrong
| Is This Answer Correct ? | 0 Yes | 7 No |
Post New Answer View All Answers
What does & mean in scanf?
How to get string length of given string in c?
What is c++ used for today?
What is the difference between variable declaration and variable definition in c?
Write a program which returns the first non repetitive character in the string?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
What are the 5 elements of structure?
Where are some collections of useful code fragments and examples?
Explain 'far' and 'near' pointers in c.
Explain how do I determine whether a character is numeric, alphabetic, and so on?
Explain union.
Are pointers integers in c?
Is file a keyword in c?
Write a program to reverse a linked list in c.
What is pointer and structure in c?