Heap allocated data is one special case of OS resources that can be managed by constructor/destructor pairs.
Learning C first is a very bad way to learn C++. One can pick up pointers later, and asm blocks after that.