what will be the output of this program
main()
{
int i=1;
while (i<=10);
{
i++;
}
}

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is a NULL Pointer? Whether it is same as an uninitialized pointer?

760


Explain what is the use of a semicolon (;) at the end of every program statement?

740


In which header file is the null macro defined?

860


How do you override a defined macro?

704


What is header file in c?

607






Can true be a variable name in c?

561


Is null always equal to 0(zero)?

589


application attempts to perform an operation?

1497


What is the purpose of main() function?

662


PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE

1474


What is the use of typedef in c?

591


I heard that you have to include stdio.h before calling printf. Why?

591


show how link list can be used to repersent the following polynomial i) 5x+2

1681


How do you construct an increment statement or decrement statement in C?

747


Can I initialize unions?

596