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 / suresh reddy

The correct answer is

5
3
1

because

in for loop "i--" statement is there and again in printf
statement "i--" is there.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we replace the struct function in tree syntax with a union?

1020


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

1466


What is the size of a union variable?

802


Hi can anyone tell what is a start up code?

1837


What is the need of structure in c?

792


What is the size of empty structure in c?

818


Can include files be nested?

841


Explain which function in c can be used to append a string to another string?

842


Explain what are compound statements?

824


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

1173


in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above

861


What is hashing in c language?

856


How can I copy just a portion of a string?

1073


What does emoji p mean?

800


What does volatile do?

760