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 / subha raman

sorry..please ignore the above answer..
the operation is "i--" =>post decrement,fist do the
operation and then decrement.
so the output will be:
5

Is This Answer Correct ?    5 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE

1474


Why do we use static in c?

636


Explain what is the general form of a c program?

627


What are static variables in c?

631


Why is C language being considered a middle level language?

658






How can I find out the size of a file, prior to reading it in?

628


What is c definition?

752


Can you write the function prototype, definition and mention the other requirements.

664


Explain continue keyword in c

590


Write a program to print “hello world” without using semicolon?

677


What is pointer & why it is used?

607


Explain about the constants which help in debugging?

858


What are linker error?

618


What is variable initialization and why is it important?

623


What is the process to generate random numbers in c programming language?

614