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 are integer variable, floating-point variable and character variable?
totally how much header files r in c language
How can you draw circles in C?
What is a lookup table in c?
which is an algorithm for sorting in a growing Lexicographic order
Explain main function in c?
How to add two numbers without using semicolon n c????
why programming language C is still used in operating system's kernel??
How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?
How to add two numbers without using arithmetic operators?
18 Answers College School Exams Tests, e track, Infosys, Pan Parag, Sapient, TCS,
Explain pointers in c programming?
how to display 2-D array elements in spiral