|
There is a problem with the definition of this function. The address character cannot be used as a formal parameter.&is an operator, not a variable type. There are two methods:
1) Use pointers as parameters
void f (int * a) {
(* a) + = 1;
}
2) Rely on the return value
int f (int a) {
a + = 1;
return a;
} |
|