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 ...
Get Beginning Programming All-in-One For Dummies, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.