C Core Lesson 5 of 11

Pass by value in C

25 min, 4 exercisesCode

A function to swap two numbers runs, and both numbers stay exactly where they were.

You've reached the good stuff.

4 exercises, checked as you type.

  • All 4 courses
  • Projects
  • Bug hunts
  • No ads

See what’s included

Sign in

C, 32-bit: int and pointers are 4 bytes