Skip to Main Content
Learn to Program with C
book

Learn to Program with C

by Noel Kalicharan
December 2015
Beginner content levelBeginner
336 pages
7h 4m
English
Apress
Content preview from Learn to Program with C

CHAPTER 2

image

C – The Basics

In this chapter, we will explain the following:

  • What is an alphabet, a character set, and a token
  • What is a syntax rule and a syntax error
  • What is a reserved word
  • How to create identifiers in C
  • What is a symbolic constant
  • The C data types—int, float, and double
  • How to write int and double expressions
  • How to print an integer using a field width
  • How to print a floating-point number to a required number of decimal places
  • What happens when int and double values are mixed in the same expression
  • What happens when we assign int to double and double to int
  • How to declare a variable to hold a string
  • How to assign a string value ...
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

Sudoku Programming with C

Sudoku Programming with C

Giulio Zambon
Learning C for Arduino

Learning C for Arduino

Syed Omar Faruk Towaha

Publisher Resources

ISBN: 9781484213711Purchase book