why does the execution of a c++ program start with main()???
Answer Posted / brian
Using static class execution can actually begin before main()!
E.g.
class MyStatic
{
public:
MyStatic() { cout << "MyStatic Class called." << endl; };
};
static MyStatic ms;
void main()
{
cout << "main called." << endl;
}
Output : =
MyStatic Class called.
main called.
| Is This Answer Correct ? | 13 Yes | 3 No |
Post New Answer View All Answers
What do stl stand for?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
Why should a c++ programmer be interested in stl?
What is stl stack?
Name the different types of stl containers.
What is the stl, standard template library?
In what scenario does the Logical file and Physical file being used?
What is the use of stl?
Is stl open source?
sir please send me bpcl previous question papers
How do you convert stl to steps?
What are the various types of stl containers?
What is a standard template library (stl)? What are the various types of stl containers?
What is stl language?
When did c++ add stl?