Shall we use 'free' to free memory assigned by new, What are
the further consequences??
Answer Posted / guest
Yes we can use free which was assigned by new.but in this
case no destrctor will be called as free doesn't call this.
So it is recommended that we should not use free if we
allcoate the memory using new.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Does std endl flush?
Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h
What c++ is used for?
what is software cycle? What is a mission critical system ? What is the important aspect of a real-time system ? Explain the difference between microkernel and macro kernel. Give an example of microkernel.Why paging is used ? Which is the best page replacement algo and Why ? What is software life cycle ? How much time is spent usually in each phases and why Which one do U want to work if selected in Honeywell ? Which are the different types of testing ? What is a distributed system ? Some questions about CSP. Which languages do U know ? What are the differences between Pascal and C. questions from Compiler construction and Lisp. Which are the different computer architecture? What is the requirement in MIMD ? What is the difference between RISC and CISC processors ? Difference between loosely coupled and tightly coupled systems ? What is an open system?
What is bubble sort c++?
How would you find out if a linked-list is a cycle or not?
Name the operators that cannot be overloaded in C++?
Can turbo c++ run c program?
Explain the isa and hasa class relationships. How would you implement each?
Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..
Write a program in c++ to print the numbers from n to n2 except 5 and its multiples
What is the use of endl in c++?
What is binary search in c++?
Can a built-in function be recursive?
What methods can be overridden in java?