The operator that allocates new memory is _____

allocate
mem
new
next

The correct answer is C. new.

The new operator allocates new memory on the heap and returns a pointer to the allocated memory. The memory can then be used to store data.

The allocate operator is not a standard C++ operator. It is defined in the C++ Standard Library and is used to allocate memory from the operating system.

The mem operator is not a standard C++ operator. It is defined in the C++ Standard Library and is used to convert a pointer to a void pointer.

The next operator is not a standard C++ operator. It is defined in the C++ Standard Library and is used to get the next element in a linked list.

Exit mobile version