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 / sindhura

it gives an error ,because prinf statement not given
correctly.if the printf statement is given as printf("\t%d",i--)
then the output of the prgm will be,
5 4 3 2 1 0

Is This Answer Correct ?    2 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a variable be both const and volatile?

678


Are the variables argc and argv are local to main?

793


What language is lisp written in?

621


Why c language?

652


What are dangling pointers? How are dangling pointers different from memory leaks?

629






Why shouldn’t I start variable names with underscores?

627


Is there any possibility to create customized header file with c programming language?

630


define string ?

671


1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.

2339


When c language was developed?

644


What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?

815


What is the difference between typedef struct and struct?

602


what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

1909


What are the features of c language?

625


What is a substring in c?

590