B4Coder
0%
LessonAbout 7 min

Chapter 8 · Lesson 2 of 5

02. Changing variables through pointers

A function gets copies of its values. Give it pointers instead, and it can change the caller's variables: the classic swap.

Opening the lesson…