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 / sh college,thevara

-128

Is This Answer Correct ?    31 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What’s the special use of UNIONS?

663


Explain the use of 'auto' keyword in c programming?

685


What is the difference between array and pointer in c?

582


What is const and volatile in c?

570


.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }

2004






Why can’t we compare structures?

818


write a program to display all prime numbers

1461


How do we open a binary file in Read/Write mode in C?

685


Write a function that will take in a phone number and output all possible alphabetical combinations

607


What is the advantage of using #define to declare a constant?

625


Is linux written in c?

603


Differentiate between null and void pointers.

635


Once I have used freopen, how can I get the original stdout (or stdin) back?

631


When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

811


What are variables and it what way is it different from constants?

793