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
Can we initialize extern variable in c?
Function calling procedures? and their differences? Why should one go for Call by Reference?
Process by which one bit pattern in to another by bit wise operation is?
What does #pragma once mean?
Do you know the use of fflush() function?
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
Explain what is the heap?
How many parameters should a function have?
What is the purpose of ftell?
What are the different types of objects used in c?
Where is c used?
where are auto variables stored? What are the characteristics of an auto variable?
How many types of arrays are there in c?
Do string constants represent numerical values?
What is volatile keyword in c?