saving . . . saved function has been deleted. function has been hidden .
function
Title
Question
Can I use malloc() function of C language to allocate dynamic memory in C++?

Advanced-Cpp Function-Overloading-And-Overriding 02-03 min 0-10 sec 23-11-17, 8:12 a.m. AKHILJITH

Answers:

More about malloc() function is available in this webpage.
https://www.geeksforgeeks.org/dynamic-memory-allocation-in-c-using-malloc-calloc-free-and-realloc/
24-03-19, 9:44 p.m. nancy
Yes, we can use malloc()function in c++

04-05-21, 4:19 p.m. saravana_7528

Login to add comment


of course yes, the malloc function in c++ allocates a block of uninitialized memory and returns a void pointer to the first byte of the allocated memory block if the allocation succeeds. 
If the size is zero, the value returned depends on the implementation of the library.
https://www.programiz.com/cpp-programming/library-function/cstdlib/malloc/
06-05-20, 2:19 p.m. Nityasree


Log-in to answer to this question.