The _____ operator is used to release the amount of memory that was dynamically created using the _____ operator
T/F A constant pointer implies a pointer to a constant variable.
T/F Once a constant pointer is initialized with an address, it cannot point to anything else.
T/F Though a function can accept pointer variables as arguments, a function can never return a pointer.
T/F A smart pointer can automatically delete a dynamically allocated memory when it is not in use anymore, without the need of the delete operator to be explicitly called to do so.
1. The delete operator is used to release the amount of memory that was dynamically created using the new operator.
2. A constant pointer implies a pointer to a constant variable: False
A constant pointer is a pointer that cannot change its own value. i.e. It cannot point to some other variable.
3. Once a constant pointer is initialized with an address, it cannot point to anything else: True
4. Though a function can accept pointer variables as arguments, a function can never return a pointer: False
We can return a pointer through a function. To avoid error we should not return a pointer which points to a local variable in the function.
5. A smart pointer can automatically delete a dynamically allocated memory when it is not in use anymore, without the need of the delete operator to be explicitly called to do so. : True
Get Answers For Free
Most questions answered within 1 hours.