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
overload assignment opertor to assign the data of one object to anthor

Program is to reverse the names stored in an array pointer: Program is to reverse the 6 names stored in an array pointer as name[] void main()   {  clrscr();  char

Write a program that predicts users’ age (0-128 years old) with at most 7 questions. The game starts with asking the user whether he/she is younger or older than G (an initial gues

One person who is specialist at programming and solving problems with a computer Project Description: Dear Potential computer, hardware, programming and software genius, I

Differentiate between a template class and class template in C++? Ans) Template class: A generic definition or a parameterized class not instantiated until the client gives the

what is the difference between call by reference and call by pointer method?

A: A smart pointer is a C++ class which mimics a regular pointer in syntax and some semantics, however it does more. Since smart pointers to distinct types of objects tend to have

Create a class  called  ticketSelling that stores booking information of a single performance on a single day and sells the tickets of the performance. The class should include at

What is the difference between an external iterator and an internal iterator? Ans) An internal iterator is executed with member functions of the class that has items to step th

Question 1: (a) Explain clearly the following concepts using suitable examples of your own:- (i) concrete class v/s abstract class (ii) constructor v/s over