Can you think of a situation where your program would crash without reaching the breakball, which you set at the beginning of main()?
Answer / neelam saini
C++ allows for dynamic initialization of global variables before main() is invoked. It is possible that initialization of global will invoke some function. If this function crashes the crash will occur before main() is entered.
| Is This Answer Correct ? | 0 Yes | 0 No |
When we use Abstract Class and when we use Interface?where we will implement in real time?
What is while loops?
Difference between Constructors and static constructors?
Where are setjmp and longjmp used in c++?
What is fflush c++?
What is c++ used for in games?
What is the main purpose of overloading operators?
What is pair in c++?
Should a constructor be public or private?
How to declare a function pointer?
What is pointer -to-members in C++? Give their syntax?
Why cout is used in c++?