Why is main function important?



Why is main function important?..

Answer / Ajit Kumar Sharma

The main() function serves as the entry point for a C++ program. Without it, the compiler would not know where to start execution.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is the best c c++ compiler for windows?

1 Answers  


Discuss the possibilities related to the termination of a program before entering the mainq method?

1 Answers  


Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..

1 Answers  


When should I use unitbuf flag?

1 Answers  


Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;

1 Answers  


Why for local variables the memory required to hold the variable is allocated from the program stack and for new its allocated from the heap?

1 Answers  


How do I use turbo c++?

1 Answers  


Is c++ a software?

1 Answers  


What is a responder chain?

1 Answers  


What are move semantics?

1 Answers  


What are the techniques you use for debugging?

1 Answers   Adtran,


Is it possible for the objects to read and write themselves?

1 Answers  


Categories