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 |
get any number as input except 1 and the output will be 1.without using operators,expressions,array,structure.don't print 1 in printf statement
What is the difference between the = symbol and == symbol?
What is the difference between text and binary modes?
Why we use int main and void main?
Explain the bubble sort algorithm.
write a programme to convert temperature from farenheit to celcius?
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
do u print this format '(((())))'. This brackets is based on user input like 4 or 5 or 6,without using any loop's?
Differentiate between Macro and ordinary definition.
What is switch in c?
What is the purpose of sprintf() function?
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above