From 879d31e2c648666c22ec332545482caa2a0c6bf4 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 28 Jun 2013 21:08:58 -0700 Subject: Updated pass-by-reference bit in c tutorial. Fixes #31 --- c.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c.html.markdown b/c.html.markdown index 78083ea5..f5b6245d 100644 --- a/c.html.markdown +++ b/c.html.markdown @@ -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 */ -- cgit v1.2.3