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
A: A using declaration makes it possible to employ a name from a namespace without the scope operator.

Problem: (a) (i) What is a structure? (ii) How does a structure differ from an array? (b) Declare a structure, called account, that will contain the following data me

Input Format: First line starts with T, which is the number of test cases. Each test case contains a string (S). Output Format: For each test case print the minimum number of ch

I require a flowchart for push , & pop operation on stack using array

Why can't one open a file in a different directory like "..\test.dat"? A: Since " " is a tab character. You must employ forward slashes in your filenames, even on operating s

// Basic pointer code #include "stdafx.h" #include iostream using namespace std; int _tmain(int argc, _TCHAR* argv[]) {             int FirstNumber, SecondNumber;

to compute the net pay of an emplyee, given his/her pay rate, number of hours and tax rate

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

Q-What is your reaction to following line of code?               delete this; A: This is not a good programming Practice. A good programmer will insist that you must absolute

Question 1 Explain Abstract data types with its characteristics Question 2 Let us say your Learning Centre decides to store all the three types of student data Register