Explain differences between alloc() and free()?
Answer / Ashish Kumar Gupta
In C and C++, malloc() is used to dynamically allocate memory, while free() is used to deallocate memory that was previously allocated with malloc(). Alloc() is not a standard function in these languages.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the use of function pointer?
Is python written in c or c++?
What are the benefits of pointers?
when can we use virtual destructor?
7 Answers HCL, HP, Virage Logic,
How do you clear a buffer in c++?
Is c++ a good beginners programming language?
What is the difference between mutex and binary semaphore?
Write a program that will count the number of digits in an input integer up to value MAX_VALUE (2147483647). Thus, for an input of 5837 the output should be 4 digits Make sure that your program works for the numbers 0, 1, and 10. For the number 0, the output should be 1 digit
Is c++ still in demand?
How a macro differs from a template?
What is a pointer how and when is it used?
What is the real purpose of class – to export data?