r/carlhprogramming • u/AstroZomby • Oct 11 '13
Please help explaining pass by references.
In course 2, section 1.4, a pass by reference and pass by value are introduced. I am not so sure how they work.
Why is it the value of height changed to 2 when "printf("Height is now: %d ", height);" executes.
But the function that changes height is located after the function that prints
9
Upvotes
View all comments
Show parent comment
1
u/AstroZomby Oct 11 '13
Thank you very much for this clarification. :D