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 / 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 |
Post New Answer View All Answers
What is a lvalue
Why array is used in c?
What is a program flowchart and explain how does it help in writing a program?
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What are the different types of constants?
What is new line escape sequence?
what does static variable mean?
How was c created?
What is the difference between a string and an array?
Can we increase size of array in c?
Define circular linked list.
Why clrscr is used after variable declaration?
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.
What are comments and how do you insert it in a C program?
What is a protocol in c?