Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?


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

Post New Answer

More C++ General Interview Questions

What does ios :: app do in c++?

0 Answers  


Can we generate a C++ source code from the binary file?

2 Answers  


Is c++ faster than c?

0 Answers  


What is the use of "new" operator?

0 Answers  


How do you sort a sort function in c++ to sort in descending order?

0 Answers  






write the code that display the format just like 1 2 1 3 2 1 4 3 2 1 5 4 3 2 1 6 5 4 3 2 1

5 Answers  


Where Malloc(), Calloc(), and realloc() does get memory?

0 Answers  


When there is a global variable and local variable with the same name, how will you access the global variable?

0 Answers  


What are the restrictions apply to constructors and destructors?

0 Answers  


What things would you remember while making an interface?

0 Answers  


In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that

0 Answers  


Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?

0 Answers  


Categories