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

Give the rules for variable declaration?

897


Why is void main used?

806


How can I find the modification date of a file?

915


which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;

2862


Explain what are header files and explain what are its uses in c programming?

848






Is register a keyword in c?

812


How do we declare variables in c?

771


What does s c mean in text?

803


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

1799


The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.

1263


Describe newline escape sequence with a sample program?

858


Can we assign string to char pointer?

784


Write a C program to count the number of email on text

1617


What are linker error?

816


Is array name a pointer?

797