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

Which control loop is recommended if you have to execute set of statements for fixed number of times?

1118


can we implement multi-threads in c.

912


What is function prototype in c language?

834


Can 'this' pointer by used in the constructor?

852


How can a string be converted to a number?

786


Write a program for Overriding.

951


What do you mean by dynamic memory allocation in c? What functions are used?

919


can anyone suggest some site name..where i can get some good data structure puzzles???

1866


How pointer is different from array?

863


List the different types of c tokens?

866


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

2509


What are the advantages and disadvantages of c language?

795


Why enum is used in c?

733


can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

1650


How is = symbol different from == symbol in c programming?

841