Is main() is used in the program,,see below example?
void main()
{
int i;
for(i=0;i<10;i++)
main();
}
Then what is the output of the program?
Answer Posted / sai
The given program is an infinite loop with no
output.Because it calls main() function with in the for
loop.
So the value of the i always '0' only.According to the for
loop condition the execution of the program goes false only
i>=10.Then when the condition in the for loop goes to false?
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Lists the benefits of c programming language?
What is operator promotion?
What are local static variables?
What is the difference between c &c++?
Can you write a programmer for FACTORIAL using recursion?
What is variable and explain rules to declare variable in c?
Can we declare variable anywhere in c?
Can a local variable be volatile in c?
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
What is wrong in this statement? scanf(“%d”,whatnumber);
What is pointer to pointer in c?
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
Is a house a shell structure?
What is difference between Structure and Unions?