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
example of program to add two number

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

Program to find a Greatest String: C - Program: Write a program find largest string by c program. int main( int argc, char *argv[] ) {     if( argc         {

Aim: To implement a program to handle stack overflow, underflow and odd number exception using Exception Handling. Code: #include #include #include #define MAX

At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with thes

Assignment:  write a C program and a MASM procedure.  The C program calls the MASM procedure to perform letter case conversion. Text sections covered:  12.1 to 12.3.1 Write a

C language lets us do this in a structure definition by putting: bit length after the variable that is. struct packed_struct { unsigned int f1:1; unsigned int f2:1; unsigned

Calculate the area of circle using c program: const float Pi = 3.1415926;   inline float area(const float r) {return Pi * r * r;}   main() {    float radius;

There is a pebble merchant. He sells the pebbles, that are used for shining the floor. His main duty is to take the length of the room’s sides. But he sometimes mistakes doing that