O'Reilly logo

Learn to Program with C by Noel Kalicharan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 6

image

Characters

In this chapter, we will explain the following:

  • Some important features of character sets
  • How to work with character constants and values
  • How to declare character variables in C
  • How you can use characters in arithmetic expressions
  • How to read, manipulate, and print characters
  • How to test for end-of-line using \n
  • How to test for end-of-file using EOF
  • How to compare characters
  • How to read characters from a file
  • How to convert a number from character to integer

6.1 Character Sets

Most of us are familiar with a computer or typewriter keyboard (called the standard English keyboard). On it, we can type the letters of the alphabet ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required