Program Crash

When can it happen that before calling main function itself program gets crashed?

Questions by binit_jha

Showing Answers 1 - 6 of 6 Answers

THenry

  • Sep 7th, 2010
 

All global static objects will be created before main().
Program has problem to instantiate them.

  Was this answer useful?  Yes

ajrobb

  • Sep 22nd, 2010
 

I agree.

However, there is a difference between global and static. Global objects have global linkage and can be referenced anywhere in the program. Static objects can have access restricted to the file or function where they are defined.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions