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

What do mean by network ?

880


Is file a keyword in c?

678


What is the size of array float a(10)?

892


how to construct a simulator keeping the logical boolean gates in c

1983


Explain how can I avoid the abort, retry, fail messages?

805


What are the types of variables in c?

770


What is null pointer constant?

775


Why doesnt this code work?

805


The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none

986


hi send me sample aptitude papers of cts?

1860


What is void pointers in c?

770


What is %s and %d in c?

751


What is the explanation for modular programming?

898


"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks

876


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

2408