mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-23 14:17:02 +03:00
Updated pass-by-reference bit in c tutorial. Fixes #31
This commit is contained in:
parent
561b879c0d
commit
879d31e2c6
@ -297,8 +297,8 @@ int add_two_ints(int x1, int x2){
|
||||
}
|
||||
|
||||
/*
|
||||
Pointers are passed-by-reference (duh), so functions
|
||||
can mutate their values.
|
||||
Functions are pass-by-value, but you can make your own references
|
||||
with pointers so functions can mutate their values.
|
||||
|
||||
Example: in-place string reversal
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user