Are you new to programming in general or just C ++? If you are new to programming, you probably want to take some classes. If you're just not familiar with C ++, you can try reading Practical C ++ Programming in C ++ Primer Online Mode.
Regarding your specific question: in a variable declaration, an asterisk means "this is a pointer":
int * pointer;
It also describes function declarations / prototypes where variables are declared, as in your example.
After the declaration, an asterisk means that you are deleting the pointer. That is, you get the value in the place it points to.
printf ("memory address:% d value:% d", pointer, * pointer);
You will notice that the memory address will change unexpectedly, depending on the state of the program when it is printed. In a simple program you will not see a change, but in a complex program you would.
atk
source share