Destruction of local object, C/C++ Programming

Need assignment help

What's the order that local objects are destructed?

Posted Date: 2/13/2013 1:26:37 AM | Location : United States





In opposite order of construction: First constructed, last destructed.   

In the following instance, b''s destructor will be executed first, as compared to the a''s destructor: 

example will help you

void userCode()

{

Fred a;

Fred b;

...

}

Posted by Robert | Posted Date: 2/13/2013 1:27:49 AM


Related Discussions:- Destruction of local object, Assignment Help, Ask Question on Destruction of local object, Get Answer, Expert's Help, Destruction of local object Discussions

Write discussion on Destruction of local object
Your posts are moderated
Related Questions
Define Some Features of Automatic Variables in C program? The features of automatic variables are like as Storage - memory Default initial value - an unpredictable value,

how to create a shopping cart

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 betw

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

Why PHP is also known as scripting language? PHP is fundamentally a general purpose language, which is used to write scripts. Scripts are normal computer files which comprises

Return by reference: The return value of the function must be an address variable.  In following program the function returns the value of x or y and their types are declare

In the Byteland country a string "s" is said to super ascii string if and only if count of each charecter in the string is equal to its ascci value in the byteland country ascii co

write a c++ program, that finds the minimum total number of shelves, including the initial one, required for this loading process.

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