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

0

Is This Answer Correct ?    4 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }

786


Write a program to reverse a string.

644


What is the time and space complexities of merge sort and when is it preferred over quick sort?

678


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

1862


Why do we use int main?

616






How can I automatically locate a programs configuration files in the same directory as the executable?

634


What are c preprocessors?

681


What does *p++ do? What does it point to?

620


Why is c so powerful?

691


When should you not use a type cast?

661


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.

1070


What's a good way to check for "close enough" floating-point equality?

630


Give the rules for variable declaration?

682


Apart from dennis ritchie who the other person who contributed in design of c language.

817


How can I find out the size of a file, prior to reading it in?

628