Skip to Main Content
Practical C++
book

Practical C++

by Rob McGregor
August 1999
Beginner to intermediate content levelBeginner to intermediate
912 pages
15h 44m
English
Que
Content preview from Practical C++

Chapter 3. Examining Expressions and Statements

<feature>
  • Learn the essentials of C++ expressions

  • See how to use operators and operands

  • Learn to use C++ statements

  • Discover expression statements

</feature>

Overview

A compiler isn’t very smart—it can’t think. It needs a formal set of rules that exactly describes the C++ language so that it knows what we mean by each symbol and combination of letters in our source code. This formal set of rules about how C++ must be written is called C++ syntax. The set of rules that determines meaning and application of these syntax rules is called C++ semantics.

Syntax

The formal rules that govern how valid instructions are written in a programming language.

Semantics

The set of rules that provides the meaning of instructions ...

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.
Start your free trial

You might also like

Practical C++ Programming, 2nd Edition

Practical C++ Programming, 2nd Edition

Steve Oualline
C++ Cookbook

C++ Cookbook

D. Ryan Stephens, Christopher Diggins, Jonathan Turkanis, Jeff Cogswell

Publisher Resources

ISBN: 0789721449Purchase book