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
Difference between constant pointer and pointer to a constant.
Write a program with dynamically allocation of variable.
Did c have any year 2000 problems?
what is a constant pointer in C
Why C language is a procedural language?
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory
What is strcmp in c?
what are the advantages of a macro over a function?
What is difference between main and void main?
What are runtime error?
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.
Explain the difference between structs and unions in c?
What is putchar() function?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
Is void a keyword in c?