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 / rani

output is

-128

Is This Answer Correct ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Between macros and functions,which is better to use and why?

1565


What is modeling?

642


Write a code to determine the total number of stops an elevator would take to serve N number of people.

725


What is keyword in c?

597


Tell me when would you use a pointer to a function?

603






Explain the priority queues?

619


Explain about the constants which help in debugging?

843


What does c mean in basketball?

561


What is the process of writing the null pointer?

605


any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

692


Explain how many levels deep can include files be nested?

622


Explain how can I remove the trailing spaces from a string?

621


Why c is known as a mother language?

636


Can we change the value of static variable in c?

556


Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.

1759