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
P o i n t er s to Members: In C a pointer is created  to locate  the address of another variable  for faster access. Consider the following example. int x, *p; p =


Create a program that will accept 3 numbers. The first number (num1) is the common difference and the second number (num2) is the starting number and the 3rd number (num3) is the m

A string S is said to be "Super ASCII", if it contains the character frequency equal to their ascii values. String will contain only lower case alphabets (''a''-''z'') and the asci

What is the difference between an external iterator and an internal iterator? Ans) An internal iterator is executed with member functions of the class that has items to step th

Question A bank normally updates it's clients accounts at the end of each month.Of the two types of bank accounts:savings and checking, a client must maintain a minimum balance

A: It is implementation dependent. Verify with your compiler's documentation. For instance, assume you wish to do binary I/O using std::cin & std::cout. Unluckily there is no st

program coding for the conversion of string to a palindrome

BACKGROUND: FILE SYSTEMS  In a computer, a file system (sometimes written filesystem) is the way in which files are named and where they are placed logically for storage and ret

Depreciation to a salvage value of 0. For tax purposes an item may be depreciated over a period of several years, n. With the straight line method of depreciati