Introduction
Pointers provide direct access to memory, and by using pointers, we can access and manipulate the values and addresses of variables and arrays in memory. The program we will build in this lab will use pointer variables to reverse a given string.
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