However, you can pass pointer arguments
This is sometimes known as `pass by reference' in other languages.
ref : cam
void foo(int *j) {
*j = 0;
}
int main(void) {
int k=10;
foo(&k);
/* k now equals 0 */
}
This is sometimes known as `pass by reference' in other languages.
ref : cam
ความคิดเห็น