I know that * is widely used as the multiplication operator, it can be used for so much more though. For example:
int number = 5;
int* pointer = &number;
In this example a int pointer gets declared and defined with the * syntax to the RAM address value of the variable number. Now if we'd want to display the value of RAM address of the variable "number" we would have to use the "*" again. Like this:
int pointer_value = *pointer;
Now we used the * syntax again but in the definition of the int variable "pointer_value". This will display the value of RAM address pointing to the value of the variable "number".
Now my question is: What is the "*" mostly used for, I saw so many examples like:
const char* word;
etc. etc. The many opportunities the "*" can be used for confuse me. Can somebody explain?