What is the output of the program given below
#include<stdio.h>
main()
{
char i=0;
for(;i>=0;i++) ;
printf("%d\n",i);
}
Answers were Sorted based on User's Feedback
Answer / sakthi
the function should not return any value.
or
-113
Is This Answer Correct ? | 1 Yes | 3 No |
Answer / tasneemuddin
It will print no from 0 to 32767.
Like :
0
1
2
3
.
.
.
.
32767
Is This Answer Correct ? | 3 Yes | 6 No |
Answer / 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 |
What is atoi and atof in c?
What are the advantages of using linked list for tree construction?
code for selection sort?
totally how much header files r in c language
c program to subtract between two numbers without using '-' sign and subtract function.
What is Conio.h ?
How many bytes is a struct in c?
Why we use void main in c?
What is the most efficient way to count the number of bits which are set in a value?
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
What is build process in c?
What is page thrashing?