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

what is bit rate & baud rate? plz give wave forms

1512


The file stdio.h, what does it contain?

663


What are the types of c language?

551


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

620


Why can’t we compare structures?

805






What tq means in chat?

578


the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset

637


Dont ansi function prototypes render lint obsolete?

601


What is strcpy() function?

652


how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions

2717


What is the explanation for the dangling pointer in c?

669


Where static variables are stored in c?

581


Why n++ execute faster than n+1 ?

1838


What is the use of getchar functions?

672


Why is c known as a mother language?

740