Described the order that objects in an array is destructed?, C/C++ Programming

Described the order that objects in an array is destructed?

Posted Date: 3/15/2013 5:21:28 AM | Location : United States





 

Described the order that objects in an array is destructed?

A: In the reverse order of construction: First constructed, last destructed.

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

void userCode()

{

Fred a[10];

...

}

 

Posted by | Posted Date: 3/15/2013 5:21:44 AM


Related Discussions:- Described the order that objects in an array is destructed?, Assignment Help, Ask Question on Described the order that objects in an array is destructed?, Get Answer, Expert's Help, Described the order that objects in an array is destructed? Discussions

Write discussion on Described the order that objects in an array is destructed?
Your posts are moderated
Related Questions
// Basic pointer code #include "stdafx.h" #include iostream using namespace std; int _tmain(int argc, _TCHAR* argv[]) {             int FirstNumber, SecondNumber;

What are pre-processor directives? - Pre-processor directives are placed at the beginning of a C program. They begin with # symbol. - This is the place, where library files

WHAT IS CGI?

Specifying a Class: As discussed a class is defined to develop an algorithm and bind it together in a core shell. A class is an abstract data type (ADT).  The binding of dat

I need Computer application/program. Project Description:                                                                I want a project done. It is a computer desktop appli

program for singly linked list with out header

Bit-wise Operators Some applications require operations to be done on dissimilar bits of a byte separately. Bit-wise operators offer a facility to do just that. There are vario

P o i n t er s to Members: In C a pointer is created  to locate  the address of another variable  for faster access. Consider the following example. int x, *p; p =

write a c program to find input string using strlen(), strcpy(), strcat(),strncat(), strcmp().

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