[Solved] Why should I use pointers? C++
A pointer is an address of a variable. Imagine ram as consecutive boxes. Each box has an address. Now in your example. int a = 8; //declares a variable of type int and initializes it with value 8 int *p1; //p1 is a pointer meaning that the variable p1 holds an address instead of a … Read more