Multiple choice

The new operator

  1. returns a pointer to a variable

  2. creates a variable called new variable

  3. clears memory for a new variable

  4. tells how much memory is available

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The 'new' operator in C++ allocates memory dynamically on the heap and returns the address of the allocated memory, which is stored in a pointer variable.