Introduction
In C programming, you can swap two numbers using pointers. Pointers are powerful features in C that allow us to manipulate data by storing and accessing addresses instead of actual values. In this lab, we will learn how to swap two numbers using pointers.
Note: You need to create the file
~/project/main.c
yourself to practice coding and learn how to compile and run it using gcc.
cd ~/project
## create main.c
touch main.c
## compile main.c
gcc main.c -o main
## run main
./main