Pointer of int
I'm having a stroke or some shit but i cant seem to get this working (it been a while since i deal with pointers).
I have a function that takes in a int pointer
I declared my var
and I'm trying to pass the point to the function by
but all of those wouldn;t work. What's am i doing wrong?
I have a function that takes in a int pointer
Code:
void getINPUTandClear(int * something)
Code:
int day = -1; \\or int * day; *day= -1;
Code:
getINPUTandClear(&day); \\or getINPUTandClear(*day); \\or getINPUTandClear(day);


