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
What is register variable in c language?
Which of these functions is safer to use : fgets(), gets()? Why?
Is it better to use malloc() or calloc()?
What is wrong with this program statement?
What is clrscr ()?
What is table lookup in c?
Why is it important to memset a variable, immediately after allocating memory to it ?
write a program to create a sparse matrix using dynamic memory allocation.
How will you declare an array of three function pointers where each function receives two ints and returns a float?
What are the data types present in c?
What is a buffer in c?
Explain b+ tree?
What are header files in c?
What are the benefits of organizational structure?
What is the function of this pointer?