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 give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
What is difference between Structure and Unions?
What are header files why are they important?
What are header files in c?
What are loops in c?
Explain what is the difference between far and near ?
What is array within structure?
What is typedef example?
Is it valid to address one element beyond the end of an array?
If null and 0 are equivalent as null pointer constants, which should I use?
the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b
Why header file is used in c?
What are the 5 types of organizational structures?
What is FIFO?
What is difference between %d and %i in c?