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 / sarvagya sharma

all the above answers are wrong i have written this program
into turbo c++ and here is what i got the output
5
4
3
2
1
0

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can you tell whether two strings are the same?

587


What is the use of putchar function?

655


Explain how can I write functions that take a variable number of arguments?

619


List some of the dynamic data structures in C?

792


Tell me when would you use a pointer to a function?

613






write a programming in c to find the sum of all elements in an array through function.

1710


How can I write functions that take a variable number of arguments?

631


How can you be sure that a program follows the ANSI C standard?

1133


What are all different types of pointers in c?

581


What is a ternary operator in c?

656


What are the disadvantages of c language?

624


What is a lookup table in c?

629


Why main function is special give two reasons?

953


Is register a keyword in c?

639


what is the syallabus of computer science students in group- 1?

1846