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
Between macros and functions,which is better to use and why?
Does c have circular shift operators?
what is the difference between 123 and 0123 in c?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
what is the difference between class and unio?
What is the difference between arrays and pointers?
Can you please explain the difference between malloc() and calloc() function?
How are pointers declared in c?
all c language question
Why doesnt that code work?
What is const keyword in c?
What is c definition?
Why is c so popular?
define string ?
What is the difference between array and linked list in c?