I am only just learning pointers and finding them quite difficult. When I try to compile I get pointers.c:18: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token. I am not to sure what this means.
Is it ok for me to do this?
int alpha;
getAlpha(*alpha);
void getAlpha(int &alpha)
.... rest of code.
Sorry if this doesn't make sense