Which function does allocate memory and leaves the memory uninitialized ?
Answers
Answered by
0
Answer:
malloc()
Explanation:
The memory allocation function malloc() and operator new do not the allocated memory.
Answered by
0
Answer: Malloc
Explanation:
Allocate uninitialized storage byte size.
If allocation succeeds, returns a correctly aligned pointer to any object type with underlying alignment.
If size is zero, malloc's behavior is implementation-defined. For example, a null pointer may be returned. Alternatively, a non-null pointer may be returned; but such a pointer should not be referenced and should be made free to avoid memory leaks.
Syntax to allocate memory in c++
https://brainly.in/question/44750052?msp_srt_exp=5
What is purpose of new operator
https://brainly.in/question/11329368?msp_srt_exp=5
#SPJ3
Similar questions