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 |
What is difference between structure and union in c programming?
Why flag is used in c?
Is c easy to learn?
what is the full form of c language
Explain why c is faster than c++?
how to find greatet of 10 numbers without using array?
How can I change the size of the dynamically allocated array?
When can a far pointer be used?
What does #pragma once mean?
What are the types of type qualifiers in c?
how to print "hai" in c?
What are bit fields? What is their use?