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
Which are low level languages?
Which one would you prefer - a macro or a function?
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.
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
What is stack in c?
.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; }
How can I prevent another program from modifying part of a file that I am modifying?
What are the application of c?
What is the time and space complexities of merge sort and when is it preferred over quick sort?
Why c is called free form language?
What are the basic data types associated with c?
What are the different types of errors?
Is main an identifier in c?
p*=(++q)++*--p when p=q=1 while(q<=6)
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