Destruction of array object, C/C++ Programming

What's the order that objects in an array are destructed? Need assistance please explain it with example.

Posted Date: 2/13/2013 1:30:19 AM | Location : United States





this answer will help you

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

In the following instance, the order for destructors will be a[9], a[8], ..., a[1], a[0]:   

void userCode()

{

Fred a [10];

...

}

Posted by isbell | Posted Date: 2/13/2013 1:31:24 AM


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

Write discussion on Destruction of array object
Your posts are moderated
Related Questions
Develop libcurl XML project I have a Project using XML with C++. You will use things like LIbcurl etc....and a XML parser to finish the project. Developer must know how to use X

Can I free() pointers allocated  along with new? Can I delete pointers allocated along with malloc()? A: No. It is completely legal, moral, and wholesome to employ malloc() a


Q: How the compiler arranges the several sections in the executable image? A: The executable contained following sections: 1.      Data Section (initialized data variable sec

Derived Data Type: Array is derived data type to store large collection of data of only one data type. int mark[100]; char names[25]; Function: will be discussed early

Friend Functions One of the major features of OOP is information hiding. A class encapsulates data and methods to operate on that data in a single unit. The data from the class

Explain the working of strcmp and strcat Function? strcmp() : This function is meant to use to compare two strings. The strcmp() function acknowledge two strings as argument

Destructor: The purpose of destructor is to free the memory when the compiler memory is reduced or not enough to execute certain program. Sometimes there may several objects op

Destructors A destructor function gets implemented whenever an instance of the class to which it belongs goes out of existence. The primary usage of a destructor function is

You are given a collection of words, say as in a dictionary. You can represent it in the following compressed form: the first word will be followed by a sequence of a pair of numbe