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 is an lvalue?

638


i got 75% in all semester am i eligible for your company

1743


If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

782


What is binary tree in c?

626


Explain what is gets() function?

638






What is context in c?

543


pierrot's divisor program using c or c++ code

1734


What is typedf?

674


What is non linear data structure in c?

579


Why is it that not all header files are declared in every C program?

687


`write a program to display the recomended action depends on a color of trafic light using nested if statments

1635


What is #include stdlib h?

619


What is strcpy() function?

661


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

660


How can I rethow can I return a sequence of random numbers which dont repeat at all?

709