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

Answer Posted / dharmendra kumar

It occurs a run time error function should return type.
If return type mentioned, after that nothing will print too, and loop will started infinite.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which are low level languages?

636


Which one would you prefer - a macro or a function?

604


1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.

2337


Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014  Npu university

1600


What is stack in c?

615






.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }

2000


How can I prevent another program from modifying part of a file that I am modifying?

614


What are the application of c?

650


What is the time and space complexities of merge sort and when is it preferred over quick sort?

676


Why c is called free form language?

572


What are the basic data types associated with c?

818


What are the different types of errors?

646


Is main an identifier in c?

603


p*=(++q)++*--p when p=q=1 while(q<=6)

1268


we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above

636