Programming in C: Unit I (b): Introduction to C

Character Set in C

C Program

Like in natural languages, computer languages also use a character set that defines the fundamental units used to represent information.

CHARACTER SET IN C

Like in natural languages, computer languages also use a character set that defines the fundamental units used to represent information. In C, a character means any letter from English alphabet, digit or special symbol used to represent information. These characters when combined together form tokens that act as basic building blocks of a C program. The character set of C can therefore be given as:

a. English alphabet: Include both lower case (a - z) as well as upper case (A - Z) letters

b. Digits: Include numerical digits from 0 to 9

c. Special characters: Include symbols such as ~, @, , ^,&, *, {, }, <. >, =,_,+,-,$, /, (, ), \, ;,:,[, ],’,”,?,.,!,.

d. White space characters: These characters are used to print a blank space on the screen. They are shown in Figure 2.8.

e. Escape sequence: Escape sequences have already been discussed in section 2.3. They include \\, \', \", \n, \a, \0, \?.


Programming in C: Unit I (b): Introduction to C : Tag: : C Program - Character Set in C


Programming in C: Unit I (b): Introduction to C



Under Subject


Programming in C

CS3251 2nd Semester CSE Dept 2021 | Regulation | 2nd Semester CSE Dept 2021 Regulation



Related Subjects


Professional English II

HS3251 2nd Semester 2021 Regulation | 2nd Semester Common to all Dept 2021 Regulation


Statistics and Numerical Methods

MA3251 2nd Semester 2021 Regulation M2 Engineering Mathematics 2 | 2nd Semester Common to all Dept 2021 Regulation


Engineering Graphics

GE3251 eg 2nd semester | 2021 Regulation | 2nd Semester Common to all Dept 2021 Regulation


Physics for Electrical Engineering

PH3202 2nd Semester 2021 Regulation | 2nd Semester EEE Dept 2021 Regulation


Basic Civil and Mechanical Engineering

BE3255 2nd Semester 2021 Regulation | 2nd Semester EEE Dept 2021 Regulation


Electric Circuit Analysis

EE3251 2nd Semester 2021 Regulation | 2nd Semester EEE Dept 2021 Regulation


Physics for Electronics Engineering

PH3254 - Physics II - 2nd Semester - ECE Department - 2021 Regulation | 2nd Semester ECE Dept 2021 Regulation


Electrical and Instrumentation Engineering

BE3254 - 2nd Semester - ECE Dept - 2021 Regulation | 2nd Semester ECE Dept 2021 Regulation


Circuit Analysis

EC3251 - 2nd Semester - ECE Dept - 2021 Regulation | 2nd Semester ECE Dept 2021 Regulation


Materials Science

PH3251 2nd semester Mechanical Dept | 2021 Regulation | 2nd Semester Mechanical Dept 2021 Regulation


Basic Electrical and Electronics Engineering

BE3251 2nd semester Mechanical Dept | 2021 Regulation | 2nd Semester Mechanical Dept 2021 Regulation


Physics for Civil Engineering

PH3201 2021 Regulation | 2nd Semester Civil Dept 2021 Regulation


Basic Electrical, Electronics and Instrumentation Engineering

BE3252 2021 Regulation | 2nd Semester Civil Dept 2021 Regulation


Physics for Information Science

PH3256 2nd Semester CSE Dept | 2021 Regulation | 2nd Semester CSE Dept 2021 Regulation


Basic Electrical and Electronics Engineering

BE3251 2nd Semester CSE Dept 2021 | Regulation | 2nd Semester CSE Dept 2021 Regulation


Programming in C

CS3251 2nd Semester CSE Dept 2021 | Regulation | 2nd Semester CSE Dept 2021 Regulation