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 is #include in c?
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What are the rules for identifiers in c?
What is the use of a ‘ ’ character?
What is the Purpose of 'extern' keyword in a function declaration?
Can true be a variable name in c?
What is output redirection?
What is adt in c programming?
Is c still relevant?
What is the most efficient way to store flag values?
How will you write a code for accessing the length of an array without assigning it to another variable?
How can you find the exact size of a data type in c?
What are the benefits of organizational structure?
Can you define which header file to include at compile time?
Subtract Two Number Without Using Subtraction Operator