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

How can I generate floating-point random numbers?

830


Write a code to remove duplicates in a string.

851


What is wrong in this statement?

839


What is the difference between strcpy() and memcpy() function in c programming?

877


What is uint8 in c?

910


the question is that what you have been doing all these periods (one year gap)

1881


Explain how do you determine a file’s attributes?

842


What is array in C

948


Explain how can you check to see whether a symbol is defined?

898


Can a function argument have default value?

930


What is identifiers in c with examples?

914


What is cohesion in c?

766


How can you increase the allowable number of simultaneously open files?

845


What is the explanation for modular programming?

942


When is a void pointer used?

932