What's the order in which the local objects are destructed?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

Write a C++ Program to Multiply two Numbers

1 Answers  


Tell me an example where stacks are useful?

0 Answers  


What is the importance of mutable keyword?

0 Answers  


Which software is used for c++ programming?

0 Answers  


what are function pointers?

0 Answers  






i want to know how to copy arrary without using any method or function. I have tried the below using System; class e4 { static void Main(string[] args) { int a,b; int[ ] m= new int[5]; int[ ] n= new int[5]; for(a=0;a<=4;a++) { Console.WriteLine("enter any value"); m[a]=Convert.ToInt32(Console.ReadLine()); m[a]=n[a]; } for(b=0;b<=4;b++) { Console.WriteLine(n[b]); } } } but it will give wrong result can anyone solve this problem

1 Answers   Reliance,


What is a multiset c++?

0 Answers  


In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest.

5 Answers   GE,


What is the use of endl in c++ give an example?

0 Answers  


When should I use unitbuf flag?

0 Answers  


Can non graphic characters be used and processed in C++?

0 Answers   HCL,


what is C++ exceptional handling?

0 Answers  


Categories