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


Please Help Members By Posting Answers For Below Questions

What are identifiers and keywords in c?

575


How can you restore a redirected standard stream?

612


What is the difference between procedural and declarative language?

657


how can f be used for both float and double arguments in printf? Are not they different types?

612


Describe wild pointers in c?

644






typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none

719


How to throw some light on the b tree?

607


Define and explain about ! Operator?

617


Difference between Function to pointer and pointer to function

636


What is the difference between declaring a variable by constant keyword and #define ing that variable?

2704


What is the difference between the = symbol and == symbol?

631


Are there constructors in c?

600


Tell me what is the purpose of 'register' keyword in c language?

620


what are bit fields in c?

609


What is storage class?

656