C++ Const Pointers vs Pointer To Const

Subscribers:
50,600
Published on ● Video Link: https://www.youtube.com/watch?v=kP-FfbcFX8k



Duration: 7:00
201 views
13


Const pointers vs pointer to const in C++. What is the difference? A const pointer is a pointer that cannot change the memory address that it points to. A pointer to const can change the memory address that it points to, but it cannot change the value at the memory it points to. Then, we have a const pointer to a const. This is a pointer that cannot change the memory address it points to, nor the value stored at the memory address.

C++ Playlist:
https://www.youtube.com/playlist?list=PLnKe36F30Y4ZDNIOZ51sX25pWKQ1pkpTE

Install C++ with VS Code:
https://youtu.be/DMWD7wfhgNY

Subscribe for more coding tutorials 😄!







Tags:
const pointer c++
const pointers c++
c++ const pointer
c++ const pointers
const pointers C++
c++ pointers to const
pointers to const c++
pointers to const C++
C++ pointers to const
const pointers in c++
const pointers in C++
const pointers vs pointers to const c++
const points vs pointers to const C++
c++ const pointers vs pointers to const
const pointers vs pointers to const in c++
const pointers vs pointers to const in C++
pointers in c++
c++ pointers