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 pragmas and what are they good for?
What is RAM memory? and What is ROM?Who designed one is temparary and another is permanent?why they designed like that?By using far pointer which type data(whether hexadecimal)we can access?
What is Conio.h ?
convert 12345 to 54321 withoutusing strig
what is the size of an integer variable?
What is a program?
What is wrong with this initialization?
Sir i need notes for structure,functions,pointers in c language can you help me please
find largest element in array w/o using sorting techniques.
how can write all 1to 100 prime numbers using for loop,if and break ?
for questions 14,15,16,17 use the following alternatives:a.int b.char.c.string.d.float
given the piece of code int a[50]; int *pa; pa=a; to access the 6th element of the array which of the following is incorrect? a.*(a+5) b.a[5] c.pa[5] d.*(*pa + 5)