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


Please Help Members By Posting Answers For Below Questions

What is #include in c?

603


Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

646


What are the rules for identifiers in c?

592


What is the use of a ‘’ character?

589


What is the Purpose of 'extern' keyword in a function declaration?

656






Can true be a variable name in c?

561


What is output redirection?

698


What is adt in c programming?

614


Is c still relevant?

646


What is the most efficient way to store flag values?

691


How will you write a code for accessing the length of an array without assigning it to another variable?

618


How can you find the exact size of a data type in c?

603


What are the benefits of organizational structure?

577


Can you define which header file to include at compile time?

591


Subtract Two Number Without Using Subtraction Operator

360