What is the output of the program given below

#include<stdio.h>
main()
{
char i=0;
for(;i>=0;i++) ;
printf("%d\n",i);
}

Answer Posted / ananth

The loop never gets terminated as it runs infinite. So the
printf statement will not trigger & no o/p is produced.

Is This Answer Correct ?    11 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we initialize extern variable in c?

627


Function calling procedures? and their differences? Why should one go for Call by Reference?

629


Process by which one bit pattern in to another by bit wise operation is?

613


What does #pragma once mean?

682


Do you know the use of fflush() function?

592






What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25

1490


Explain what is the heap?

618


How many parameters should a function have?

661


What is the purpose of ftell?

595


What are the different types of objects used in c?

569


Where is c used?

644


where are auto variables stored? What are the characteristics of an auto variable?

587


How many types of arrays are there in c?

591


Do string constants represent numerical values?

913


What is volatile keyword in c?

577