Pointers In C++ | Pointer Explained With Real Life Examples | Pointers In OOPs C++
Pointers In C++ What is pointer in c++ ? If you searched about pointers in c++ on google probably you saw that In C++, a pointer refers to a variable that holds the address of another..... BlahBlahBlah..... But you won't able to understand too much about pointers. So don't worry I will explain this concept very easily by a real life example. So before understanding about pointers first you have to understand why we need pointers? As you know basically when you create variable then it will occupy some space in your pc. And when you create a another variable with same value or modify that variable with some other value then it will occupy more space in the pc. For example - #include < iostream > using namespace std ; int main () { int var = 12 ; //Suppose This will occupy some space which ID is AB12 int...