Can you think of a condition where your program would crash , C/C++ Programming

Can you think of a condition where your program would crash without attaining the breakpoint that you set at the starting of main()?

A: C++ let for dynamic initialization of global variables before main() is invoked. This is possible that initialization of global will invoke some of function. If this function crashes the crash will take place before main() is entered. Name two cases in which you MUST use initialization list as opposed to assignment in constructors. Non-static const data members and reference data members both cannot be assigned values; rather then, you must use initialization list to initialize them.

 

Posted Date: 3/21/2013 7:35:09 AM | Location : United States







Related Discussions:- Can you think of a condition where your program would crash , Assignment Help, Ask Question on Can you think of a condition where your program would crash , Get Answer, Expert's Help, Can you think of a condition where your program would crash Discussions

Write discussion on Can you think of a condition where your program would crash
Your posts are moderated
Related Questions
#quGiven the Array class definition in Fig. 11.10-11.11 (pp. 476-479) of the textbook, write a new overloaded operator function for the ‘%’ (modulus) operator (i.e., return an arra

Each function has its own stack frame between %fp and %sp. Let Caller calls Callee. Then Caller's %sp becomes callee's %fp, and callee's %sp set to be a new value (a smaller one be


Aim: To implement a program to swap two numbers using reference arguments. Code: void swap(int *a, int *b) {             int temp;             temp=*a;

Using a Friend Using a friend function is quite easy. The following example explains a friend function to access members of two classes. class Bclass;

Public, Private and Protected members: Class members can either be declared in public','protected' or in the 'private' sections of the class. But as one of the features of OOP i

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b

What is the difference between = symbol and == symbol? - The = symbol is generally used in mathematical operations. It's used to assign a value to a given variable whereas the

Damjibhai and Shamjibhai are two jeweler friends. They decide to play a simple game. The game comprises of removing the jewels for polishing, turn by turn. Once a jewel is removed

how to write a c program for stone game