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 / rajendra.p (honeywell)
-128 is correct answer
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
What language is c written?
What is malloc and calloc?
What happens if you free a pointer twice?
What are header files and explain what are its uses in c programming?
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
What are the different types of pointers used in c language?
Why we not create function inside function.
How do I create a directory? How do I remove a directory (and its contents)?
What are local static variables? How can you use them?
What is volatile keyword in c?
Why c is a mother language?
Is c is a procedural language?
Why are algorithms important in c program?
Explain a file operation in C with an example.
What is the difference between functions abs() and fabs()?