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
Area under the curve Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve bet

If an array holds integer, each of which is four bytes long, how many bytes from the base location of the array is the location of the fifth element?

Program to store family members details in C++: #include #include #include struct record {   char name[30];   int age;   char state[40]; }x; //cal

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

string S convert it to a palindrome by doing chara, C/C++ Programming

Write a program to calculate the average of ten numbers       #include stdio.h     /* Only this header is needed since only IO are used */     void main()     {          char

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b

accept principal amount,rate of interest, & duration from the user. display interest amount and total amount

The Switch Construct The switch statement is a multi-way decision-making construct that tests an expression matches one of a number of constant values, and branches accordingly

Given a bool variable isReadable write some statements that assign true to isReadable if the file "topsecret" exists and can be read by the program and assigns false to isR