What You Should See
You can put this into an ex1.c and then run the commands shown here in this sample shell output. If you’re not sure how this works, watch the video that goes with this exercise to see me do it.
Exercise 1 Session
$ make ex1 cc -Wall -g ex1.c -o ex1 $ ./ex1 You are 100 miles away. $
The first command make is a tool that knows how to build C programs (and many others). When you run it and give it ex1 you are telling make to look for the ex1.c file, run the compiler to build it, and leave the results in a file named ex1. This ex1 file is an executable that you can run with ./ex1, which outputs your results.