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 are the interview question's in the language c
what will be the output of "printf("%d%d",scanf("%d% d",&a,&b))".provide an explation regarding the question
how is the examination pattern?
What is a method in c?
What are comments and how do you insert it in a C program?
What is 1d array in c?
Explain what is the benefit of using an enum rather than a #define constant?
How can I allocate arrays or structures bigger than 64K?
Explain union.
What is pragma in c?
What is wrong with this code?
write a own function to compare two strings with out using stringcomparition function?