What is the output of the program given below
#include<stdio.h>
main()
{
char i=0;
for(;i>=0;i++) ;
printf("%d\n",i);
}
Answers were Sorted based on User's Feedback
Answer / madhu
127.As i is a char the last digit would be 127,so the loop
stops at that point.
I crosschecked it writing a program.
Is This Answer Correct ? | 1 Yes | 9 No |
What are the advantages and disadvantages of a heap?
Write a program that accept anumber in words
How can I call a function, given its name as a string?
Write a program to print numbers from 1 to 100 without using loop in c?
to get a line of text and count the number of vowels in it
why in C,C++'s int size is 2 byte and .net(c#) int Size is 4 byte?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
What are preprocessor directives in c?
What is boolean in c?
What is structure of c program?
What is string in c language?
Write a program to generate prime factors of a given integer?