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: Depends. Might be "zero" Objects which are thrown must have a publicly accessible copy-constructor. The compiler is permitted to generate code which copies the thrown object

For your class to work properly, you'll need to define appropriate constructors, extract and insert operators, and of course arithmetic operators. (If you wanted to use it as a gen

Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send


Write a function that computes f(x) for a quadratic polynomial in x, such as the one in assignment 3. Use the function to plot f(x) from -10 to +10.

.Create a Csharp solution that will show a maze in the user interface and will show a mouse walking through the maze attempting to locate the exit door (the cheese).

A: A using declaration makes it possible to employ a name from a namespace without the scope operator.

#write code for rotation in c

Your program will read two kinds of data from two files: names and predicates. It will read a formal expression from standard input and check whether that expression is syntactical

Described the difference among "new" and "operator new" ? A:"operator new" works such as malloc.