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

It will give compilatiin error "warning: passing argument 1
of âprintfâ makes pointer from integer without a cast",
because the syntax of printf is not right.
And it would have been printf("%d",i--);
Then correct answer is 531.


This is the correct answer rest all are wrong.[:)]

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does main () mean in c?

862


Explain goto?

919


i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me

1669


Differentiate between functions getch() and getche().

807


What are register variables in c?

798


What is cohesion and coupling in c?

797


what are the facialities provided by you after the selection of the student.

1931


What are void pointers in c?

768


Why c is called a middle level language?

829


What is difference between structure and union in c?

736


write a program to create a sparse matrix using dynamic memory allocation.

4620


show how link list can be used to repersent the following polynomial i) 5x+2

1901


What is the difference between printf and scanf in c?

1012


How can I read and write comma-delimited text?

837


What are the different types of objects used in c?

751