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 / akash dhal
initialized with 0
in for loop ist time condition satisfied so print 0,like
this 127 will be printed .as it is a signed no. so 127+1 is
-128 so condition false come out of the loop.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is pointer to pointer in c with example?
What does it mean when the linker says that _end is undefined?
What is wrong with this initialization?
What are nested functions in c?
Do array subscripts always start with zero?
What are the uses of a pointer?
Should I learn data structures in c or python?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
What will the preprocessor do for a program?
What is the use of a static variable in c?
What does volatile do?
What does it mean when a pointer is used in an if statement?
Explain high-order bytes.
How reliable are floating-point comparisons?
How can I list all of the predefined identifiers?