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 / abhishek roy

Yes there is syntax error in printf statement but if write
printf("%d",i--)then The output for the given for loop is
5 3 1.

it is 100 % write....

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are # preprocessor operator in c?

634


write a program to find the given number is prime or not

3849


What is scope rule of function in c?

554


What are the different types of endless loops?

626


Under what circumstances does a name clash occur?

694






For what purpose null pointer used?

609


How can a string be converted to a number?

521


How can you check to see whether a symbol is defined?

596


Is c procedural or object oriented?

585


What is a protocol in c?

561


Which programming language is best for getting job 2020?

611


How can I avoid the abort, retry, fail messages?

665


Is it cc or c in a letter?

570


GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA

1433


Where are the auto variables stored?

628