Principles of using this textbook
Principles of using this textbook#
Embedded Code 💻#
Code will appear in boxes like these. You can copy code by hovering on this box and pressing on the button at the top right.
You can also download the
.c file of the program by clicking on file name in text. For example, download
hello-world.c if you want to edit the code yourself. If it opens a new window with contents of the file, right-click on the page and select Save As. You can choose where you want to save the file. Please make sure it is saved as
.c file not
Example or potential output to the code will be shown as in the following example.
Output will appear in boxes like these. These cannot be copied. Inputs to code will appear in bold.
Every chapter will have an exercises section. This section will include past exams questions related to the concepts discussed in the chapter (or previous chapters). Some may be marked as [Easy], [Intermediate] or [Challenging]. The difficulty level is subjective and may vary from person to person. I expect you to solve these exercises after we cover the chapter in the lectures.
These exercises will have solutions that will be hidden and you need to click to show the answer. For example,
An answer will appear here.
In some chapters, there will be a section on debugging. It will discuss the most common mistakes programmers make related to the chapter. It may or may not include a YouTube video where I debug a code using concepts discussed in the chapter.
You can download a copy of each section by clicking on the top right most icon with an arrow. PDF should be your to-go option.
You have a search box in the middle left of the page. You can search for a keyword or a phrase. It will search through the entire textbook.
Suggestions and Feedback 📝#
This website/online e-book is still under development. If you have any suggestions or feedback, please email me at firstname.lastname@example.org . You can also hover over the cat icon in the top right of this page, and click on open issue. This will take you to GitHub where you can easily describe what’s the issue. This requires that you sign-up for a GitHub account.