I am not 100% sure about functions at the moment.
[1] Declare function above main.
Code:int qcheck(int holdans, int *p);
[2] Call function:
[3] Function definition that is called:Code:qcheck (holdans, &score);
Code:int qcheck(int holdans, int *p) { code }
Question.
Does 1 and 2 always have to match exactly?
p.s I love pointers (when I understand them), they can be so simple and short.



LinkBack URL
About LinkBacks



