what will be the output of this program
main()
{
int i=1;
while (i<=10);
{
i++;
}
}
Answers were Sorted based on User's Feedback
Answer / srikanth karnati
there is no output because there is no out statment
there.if write printf("%d",i);at out side the loop the
output will be 11.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / dharmendra kumar
It occurs a run time error function should return type.
If return type mentioned, after that nothing will print too, and loop will started infinite.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / aswini
answer will be 10.it will never execute the loop as there
is semicolon.hence directly 10 will be assigned to i.
| Is This Answer Correct ? | 1 Yes | 3 No |
How can I read data from data files with particular formats?
when will be evaluated as true/ if(x==x==x) a) x=1; b) x=0; c) x=-1; d) none
the question is that what you have been doing all these periods (one year gap)
When should the volatile modifier be used?
Why do we use & in c?
What are header files and explain what are its uses in c programming?
What is the ANSI C Standard?
Why ca not I do something like this?
what are far pointers?
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
how to swap two integers 1 and 32767 without using third variable
How to convert decimal to binary in C using recursion??