hi...Friends.Welcome to Programs_magic☻.
:- Subscribe to our channel and hit the bell 🔔🔔🔔 icon to get video updates.
Subscribe:- bit.ly/2FeUXGq
The character set of C
character:- It denotes any alphabet, digit or special symbol used to represent information.
Use:- These characters can be combined to form variables. C uses constants, variables, operators, keywords, and expressions as building blocks to form a basic C program.
Character set:- The character set is the fundamental raw material of any language and they are used to represent information. Like natural languages, computer language will also have well defined character set, which is useful to build the programs.
The characters in C are grouped into the following two categories:
-----------------------------------------------------------------------------------------------------------
Backslash character constants
Character ASCII value Escape Sequence Result
Null 000 \0 Null
Alarm (bell) 007 \a Beep Sound
New line 010 \n Moves next Line
Vertical tab 011 \v Moves next vertical tab
Form feed 012 \f Moves initial position of next page
Carriage return 013 \r Moves beginning of the line
Double quote 034 \" Present Double quotes
Single quote 039 \' Present Apostrophe
Question mark 063 \? Present Question Mark
Back slash 092 \\ ======================================================
☻☻☻☻☻☻☻☻☻☻☻☻☻Tokens☻☻☻☻☻☻☻☻☻☻☻☻
-----------------------------------------------------------------------------------------------------------
Image result for tokens in cwww.c4learn.com
A programming token is the basic component of source code. Characters are categorized as one of five classes of tokens that describe their functions (constants, identifiers, operators, reserved words, and separators) in accordance with the rules of the programming language. Individual word in the program is taken.
types
There are six types of token in C.
♥ Keywords: Keywords are special words that are used to give a special meaning to the program and can’t be used as variable and constant. They are basically a sequence of characters that have fixed to mean for example break, for, while, do-while, do, if, int, long, char.
♥Identifiers: Identifiers are the sequence of alphabets and digit, but keyword should not be used as an identifier.
♥Constants: The quantity which does not change during the execution of a program is known as constant. There are types of constant.
♥Variables: Variables are used to give the name and allocate memory space. An entity that may vary data during execution. For example, sum, area, a, b, age, city.
String: String is a collection of more than one character. For example, “RAM”, “Meerut”, “Star” String is represented by a pair of double quotes.
♥Operators: Operators acts as connectors and they indicate what type of operation is being carried out. The values that can be operated by these operators are called operands. They are used to perform basic operations, comparison, manipulation of bits and so
コメント