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 is stl stand for?
what is template and type convertion
What does stl mean in slang?
Can we use stl in coding interviews?
Is stl open source?
How does an stl file work?
Is stl part of c++ standard?
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.
What is a list in c++ stl?
When did c++ add stl?
i wanted to know about questions about c,c++ , which is required for placements.... im a fresher
What is a standard template library (stl)?
What is stl in c++ with example?
Who created stl?
Name the different types of stl containers.