Skip to main content

Operators and Expressions

  • Chapter
  • 218 Accesses

Part of the book series: Springer Books on Professional Computing ((SB COMPUTING))

Abstract

Operators are the verbs of the C language that let you calculate values. C’s rich set of operators is one of its distinguishing characteristics. You have already seen a number of C operators in the preceding chapters, such as + (addition), / (division), < (less than), and = (assignment). The operator symbols are composed of one or more special characters. If an operator consists of more than one character, you must enter the characters without any intervening spaces:

$$\begin{array}{*{20}{c}} {{\text{x}}\;\; < {\text{ = }}\;\;{\text{y}}}&{/*\;{\text{ legal expression }}\;*/} \\ {{\text{x}}\;\; < \;{\text{ = }}\;{\text{ y}}}&{/*\;{\text{ illegal expression }}\;*/} \end{array}$$

In this chapter, we take another look at the previously mentioned operators and introduce some new ones. We also describe expressions in greater detail.

We must either institute conventional forms of expression or else pretend that we have nothing to express. — George Santayana, Soliloquies in England

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   74.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 1991 Springer-Verlag New York, Inc.

About this chapter

Cite this chapter

Darnell, P.A., Margolis, P.E. (1991). Operators and Expressions. In: C: A Software Engineering Approach. Springer Books on Professional Computing. Springer, New York, NY. https://doi.org/10.1007/978-1-4684-0383-1_5

Download citation

  • DOI: https://doi.org/10.1007/978-1-4684-0383-1_5

  • Publisher Name: Springer, New York, NY

  • Print ISBN: 978-0-387-97389-0

  • Online ISBN: 978-1-4684-0383-1

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics