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
Project Description: Prepare software that will work with our USB hardware that easily lets you backup all the pictures in your computer into the USB stick in one single step. Once



The Switch Construct The switch statement is a multi-way decision-making construct that tests an expression matches one of a number of constant values, and branches accordingly

how to create a shopping cart and sibmit the code segment on screan

write a program to accept ten numbers and display the total

salotion of programes

write a programme that computes the price of shares and options. do the options in one-period binomial model.

Padovan String Problem Description A Padovan string P(n) for a natural number n is defined as: P(0) = ‘X’ P(1) = ‘Y’ P(2) = ‘Z’ P(n) = P(n-2) + P(n-3), n>2 where + denotes s

First line starts with T, number of test cases. Each test case T contains a necklace (N).