Skip to content

Commit

Permalink
Updated pass-by-reference bit in c tutorial. Fixes adambard#31
Browse files Browse the repository at this point in the history
  • Loading branch information
adambard committed Jun 29, 2013
1 parent 561b879 commit 879d31e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions c.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 879d31e

Please sign in to comment.