Answer Posted / hrpynux@gmail.com
Use the malloc() function to allocate memory in designated blocks and the new function to create a new function. To reallocate memory, the realloc() function is used. When finished, always include a free() function in order to free up the memory. If you used new(), use delete() to free up the memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is pointer in c++ with example?
Explain object slicing in c++?
Why cout is used in c++?
Can we define a constructor as virtual in c++?
what is Member Functions in Classes?
What is linked list in c++?
Can we run c program in turbo c++?
How do you sort a sort function in c++ to sort in descending order?
What is class and structure in c++?
What are proxy objects in c++?
Can you help me with this one? Make a program that when a user inputed a Product Name, it will display its price, and when the user inputed the quantity of the inputed product, it will show its total price. The output must be like this: Product Name: Price: Quantity: Total Price: ..this is the list of products to be inputed: Cellphone - 1500 Washing Machine - 5200 Television - 6000 Refrigirator - 8000 Oven - 2000 Computer - 11000 thanks..:D
Explain what is polymorphism in c++?
What is std :: flush?
What is implicit conversion/coercion in c++?
How do you establish a has-a relationship?