Define order that local objects are destructed?, C/C++ Programming

Define order that local objects are destructed?

 

Posted Date: 3/15/2013 5:20:46 AM | Location : United States





A: In the reverse order of construction: First constructed, last destructed.

In the following instance, b''s destructor will be executed first, and then a''s destructor:

void userCode()

{

Fred a; Fred b;

...

}

 

Posted by | Posted Date: 3/15/2013 5:20:58 AM


Related Discussions:- Define order that local objects are destructed?, Assignment Help, Ask Question on Define order that local objects are destructed?, Get Answer, Expert's Help, Define order that local objects are destructed? Discussions

Write discussion on Define order that local objects are destructed?
Your posts are moderated
Related Questions
Consider the following example: int max(int x, int y)                  {                                 return ( x > y) ? x : y ;                  }   float max

A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome

Define Polymorphism? A: Polymorphism let a client to treat distinct objects in the similar way even if they were developed from distinct classes and exhibit different behaviors.

Dereferencing the Pointer this Sometimes a member function requires to make a copy of the invoking instance so that it can change the copy without affecting the original instan


Explain about the String Constants in c language? A collection of characters included within a pair of double quotes is treated as string constant. The character may be numbers

Requirements: 1.  This assignment as well as other assignments in this class must be finished on Windows operating system. 2.  Zip your program and submit the zip file on ANG



Receive 3 numbers and display them in ascending order from smallest to largest ed#