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 does char * * argv mean in c?

716


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

772


Describe newline escape sequence with a sample program?

756


Explain what is wrong with this program statement? Void = 10;

873


Why isn't any of this standardized in c? Any real program has to do some of these things.

761






Is c dynamically typed?

782


Is using exit() the same as using return?

788


Explain pointers in c programming?

737


Can we increase size of array in c?

628


Can we change the value of constant variable in c?

670


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

734


What is 02d in c?

731


What is the difference between ā€˜gā€™ and ā€œgā€ in C?

3166


When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

917


Can two or more operators such as and be combined in a single line of program code?

934