Types of pointers | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Types of pointers

26th Feb 2019, 3:55 AM
Charishma Kurapati
Charishma Kurapati - avatar
3 Answers
+ 3
Post C++11, there are 4 types of pointers in C++: unique_ptr, shared_ptr, weak_ptr (smart pointers or wrappers over raw pointers for maintaining resource ownership in different scopes and among different owners), and the raw pointer from C. You can find more information about them here: https://en.cppreference.com/w/cpp/header/memory
26th Feb 2019, 5:35 AM
Kinshuk Vasisht
Kinshuk Vasisht - avatar
+ 2
https://www.sololearn.com/learn/CPlusPlus/1630/
26th Feb 2019, 4:37 AM
Aditya Kannojia
Aditya Kannojia - avatar