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
What are identifiers and keywords in c?
How can you restore a redirected standard stream?
What is the difference between procedural and declarative language?
how can f be used for both float and double arguments in printf? Are not they different types?
Describe wild pointers in c?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
How to throw some light on the b tree?
Define and explain about ! Operator?
Difference between Function to pointer and pointer to function
What is the difference between declaring a variable by constant keyword and #define ing that variable?
What is the difference between the = symbol and == symbol?
Are there constructors in c?
Tell me what is the purpose of 'register' keyword in c language?
what are bit fields in c?
What is storage class?