C 語言 pointer 指針在自定義函數的用法

定義一個函數mymax

1
2
3
4
5
int mymax(int *x, int *y){
...
...
return z;
}

x、y還有z都是pointer,且可以為動態陣列malloc