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

if p is a string contained in a string?

1623


What does #pragma once mean?

929


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2153


Why c is faster than c++?

810


hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel

1644


How can I read in an object file and jump to locations in it?

805


void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

1497


What is extern variable in c with example?

772


What is external variable in c?

820


If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

1019


What is the use of header?

839


How many types of operators are there in c?

814


How are 16- and 32-bit numbers stored?

988


Why do we use & in c?

788


Can we change the value of static variable in c?

766