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

the function should not return any value.
or
-113

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe the difference between = and == symbols in c programming?

1007


What is the deal on sprintf_s return value?

824


What is the process to create increment and decrement stamen in c?

780


What is the difference between a function and a method in c?

784


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

810


Sir i need notes for structure,functions,pointers in c language can you help me please

2155


How can you invoke another program from within a C program?

799


What is a #include preprocessor?

809


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

822


Why we use conio h in c?

881


Is a house a shell structure?

885


Write a program to check whether a number is prime or not using c?

788


What is a memory leak? How to avoid it?

857


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

857


Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.

5089