From the course: Master C Language Pointers

Compiling the code - C Tutorial

From the course: Master C Language Pointers

Start my 1-month free trial

Compiling the code

- [Instructor] Exercise files are available for this course from its webpage. Download the archive from the link provided and expand it on your computer as shown here in Windows. The files are organized by chapter and movie. Source code is referenced in the movies and found in the appropriately-named folder along with any other necessary files. For this course, I use Code::Blocks in Windows 10, though the code can also be compiled on a Macintosh in Xcode or in any Unix-like system at the command prompt in a terminal window. Some files contain deliberate errors, which are used for demonstration purposes as described in the movies. Many of the files come with an abundance of comments, which further documents what's presented in this course. As a quick review, open a source code file in Code::Blocks. The source code appears in the editor's window. The build button compiles and links the code. Errors and warnings are output in the build messages tab as well as the build log. Click the run button to test run the program. Output appears in a command prompt or terminal window. Press the enter key to close or if a terminal window opens without the enter key prompt, close the window manually. Sometimes not closing a window in Code::Blocks causes odd behavior. So ensure you don't forget this step. The build and run button combines both actions, building the code and test-running the result. Using the exercise files saves time and helps you to study pointer programming techniques presented. And feel free to modify the exercise files on your own as you become bolder and desire to improve your knowledge of pointers and C programming.

Contents