no man I am talking about execution. In above case first main will execute and then my_init_func() will be called.I dont want that.
See in following case
int main()
{
cout<<"In main"<<endl;
}
my_function()
{
cout<<"In my function";
}
O/P should be:
In my function
In main
Duoas was talking about execution order too. I can't think of any possible way to run the above program and get the results you want. The program above won't even compile.
Reputation Points: 2614
Solved Threads: 687
Posting Expert
Offline 5,372 posts
since Jan 2008