To tylko jedna z 2 stron tej notatki. Zaloguj się aby zobaczyć ten dokument.Zobacz
całą notatkę
Podgląd dokumentu
Fragment notatki:
Passing values to functions • All function arguments are passed ''by value'' • The called function gets a copy of arguments • If you really need to modify a variable in a calling routine: - pass a pointer to it - the function will modify this place in memory - the caller must provide the address of the variable to be set: int fun5(double *w) { *w=5; return 0; } ... fun5(&x);
... zobacz całą notatkę
Komentarze użytkowników (0)