what will be the output of this program
main()
{
int i=1;
while (i<=10);
{
i++;
}
}
Answer Posted / 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 |
Post New Answer View All Answers
Are the outer parentheses in return statements really optional?
What is the role of && operator in a program code?
write a program to display all prime numbers
Explain how many levels deep can include files be nested?
what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above
When should we use pointers in a c program?
What is a list in c?
What are actual arguments?
Why ca not I do something like this?
What is header file definition?
Can one function call another?
Is c call by value?
What is array in C
write a program fibonacci series and palindrome program in c
What is non linear data structure in c?