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
Blanche has a fashion design company called BLB_Best_Clothing Pty. That she has just opened recently

Explain Register Variable Computers have internal registers, which are used to keep data temporarily, before any operation can be performed. Intermediate results of the calcula

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 string concatenation.

Program of swapping two varibales: void swap(int *, int *);   // This is swap's prototype int main() {                 int x = 5, y = 7;                 swap(&x, &


3 . Write a ‘C’ program to accept any 3 digit integer number from the keyboard and display the word equivalent representation of the given number.

Project Description: Seeking a Voting Bot Script / Program Skills required are ASP, Javascript, C Programming, PHP, Software Architecture

Comments Comments are integral part of every program . Comments help in coding, debugging and maintaining a program . The compiler ignores them. They should be used liberally i

i need to do my home work

C Program for FUNCTION OF COUNT THE CHARACTERS IN EACH WORD void count(char c[]); void main() {           char a[50];           int i=0;           clrscr();