1

Data Types, Variables and Constants

Learning Objectives

In this chapter, you will learn about:

  • Various features of C language
  • Various C’s standards
  • C’s character set
  • Identifiers and Keywords
  • Rules to write identifier names in C
  • Data types, type qualifiers and type modifiers
  • Declaration statement
  • Difference between declaration and definition
  • Length and Range of various data types
  • l-value and r-value concept
  • Variables and constants
  • Classification of constants
  • Structure of a C program
  • Process of compiling and executing a C program
  • Writing simple C programs
  • Using printf and scanf functions
  • Use of sizeof operator

1.1 Introduction

C is a general-purpose, block-structured, procedural, case-sensitive, free-flow, portable and high-level programming ...

Get Programming in C: A Practical Approach, First 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.