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
Why does not c have an exponentiation operator?
p*=(++q)++*--p when p=q=1 while(q<=6)
When do we get logical errors?
What is main () in c?
Explain data types & how many data types supported by c?
Explain how do you view the path?
What are called c variables?
Explain the advantages and disadvantages of macros.
Can you define which header file to include at compile time?
why we wont use '&' sing in aceesing the string using scanf
What is the scope of global variable in c?
What is difference between stdio h and conio h?
What is extern storage class in c?
What are near, far and huge pointers?
find out largest elemant of diagonalmatrix