In the C programming language, the character set refers to the set of characters that can be used to write C code. The character set includes letters, digits, and special symbols. Here are the main components of the character set in C:
Alphabets:
Uppercase letters: A, B, C, ..., Z
Lowercase letters: a, b, c, ..., z
Digits:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9
Special Symbols:
Space: ' '
Comma: ,
Semicolon: ;
Period: .
Parentheses: ( )
Braces: { }
Square brackets: [ ]
Single quotes: '
Double quotes: "
Ampersand: &
Percent: %
Asterisk: *
Plus: +
Minus: -
Forward slash: /
Backslash: \
Caret: ^
Exclamation mark: !
Question mark: ?
Colon: :
Equals: =
Less than: <
Greater than: >
Escape Sequences:
\n: Newline
\t: Tab
': Single quote
": Double quote
Others:
Null character: '\0'
These characters are the building blocks that you use to write C code. The C compiler recognizes and interprets these characters to understand and execute your program. When writing C code, you create meaningful combinations of these characters to form keywords, identifiers, operators, and other syntactic elements that make up your program. Understanding the character set is fundamental for writing and comprehending C programs.
0 Comments
If you have any doubts, Please let me know