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 THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
Software Interview Questions
Why does not c have an exponentiation operator?
what are far pointers?
Reverse the bit order in a single macro. eg. i/p = 10010101 --> o/p = 10101001
WHAT IS MAXIMUM SIZE OF AN ARRAY IN C LANGUAGE?
8 Answers Carphone Warehouse, IBM, SAS,
What are the advantages of using linked list for tree construction?
what is C?
how do u find out the number of 1's in the binary representation of a decimal number without converting it into binary(i mean without dividing by 2 and finding out the remainder)? three lines of c code s there it seems...can anyone help
What is the meaning of 2d in c?
4. main() { int c=- -2; printf("c=%d",c); }
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?