CHAPTER

2

Basic Elements of the C Programming Language

2.1 Introduction to C

2.2 Constants and Variables

2.3 Arithmetic Operations and Expressions

2.4 Overview of Implementation

2.5 First Complete Programs

Chapter Summary

Exercises

Objectives

To learn the syntax and semantics of the C language. To learn the logical and physical structure of programs and the types of data that can be processed.

C is a versatile, flexible, and powerful programming language that was designed and developed in 1972. C incorporated many of the ideas of its ancestral languages BCPL and B. BCPL (Basic Combined Programming Language) was developed in 1967 by Martin Richards. BCPL was a typeless (no data types) language using machine words and machine addresses. In ...

Get C Programming for Scientists and Engineers with Applications 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.