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 / harshitha

the loop will be repeated for 10 times

Is This Answer Correct ?    2 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer

3845


Write a code to remove duplicates in a string.

629


What does d mean?

587


What is the benefit of using an enum rather than a #define constant?

662


Do string constants represent numerical values?

925






What is pivot in c?

569


Can you assign a different address to an array tag?

703


What are the disadvantages of c language?

622


Is a house a mass structure?

643


what are the different storage classes in c?

662


what is the difference between 123 and 0123 in c?

725


Is it possible to execute code even after the program exits the main() function?

819


Are bit fields portable?

680


Is c call by value?

608


What is difference between union and structure in c?

581