Chapter 1
C and C++
IN THIS CHAPTER
Understanding the structure of a C/C++ program
Using comments
Declaring variables
Using mathematical operators
Working with branching and looping statements
Creating functions and data structures
Working with objects
The C language focuses on simplicity (for the computer, not for human programmers). Whereas other programming languages include a large number of keywords, the C language consists of a much smaller number of keywords. As a result, creating C compilers is relatively easy compared to creating compilers for other programming languages, which means that C compilers are easy to write for every operating system. This makes it easier to port (transfer) C programs from one computer to another.
Because the C language consists of relatively few ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access