Please stop mixing C and C++ together. Learn C gets you to know all the underlying mechanisms. Learning C++ gives you nothing else but some overmarked concepts like OO.
Specifically smart pointers that track ownership, raii.
the same can't be said for C++, e.g. its OO concept seemed to be cool back in the 90s, but after so many decades, at the core of a legacy language, it is now well known that OO is not the choice, modern languages no longer focus on OO for good reasons.
I encourage everyone to learn C, if they have time, learning ASM is also a good investment. At the same time, I think C++ should be depreciated.