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 / kalyan chukka

Loop will Repeated 10 times .in this program main function
is called it self 10 times.So the loop will repeated 10 times

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define and explain about ! Operator?

790


What is the value of a[3] if integer a[] = {5,4,3,2,1}?

878


What are global variables?

876


What is c method?

754


Is c# a good language?

793


What is the difference between far and near in c?

813


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

2138


Explain the difference between call by value and call by reference in c language?

875


all c language question

2178


Explain heap and queue.

807


What is difference between far and near pointers?

802


What are identifiers in c?

907


Explain what is the difference between #include and #include 'file' ?

793


What is malloc() function?

842


Explain the advantages of using macro in c language?

772