Posts

Showing posts from January, 2023

Pointers in C++

  Pointers: Pointer is a variable which store the address of another variable. It is declared using '*' with data type of the variable whose address will be store in the pointer variable. For Example -                                     int  n=10;  / / An integer variable n                                    int* ptr = &n; // ptr is a pointer to the variable n.                                                      // ptr store the address of variable n.                               int*ptr means "ptr is a pointer to the integer variable". Dereferenci...