What are Identifiers:
Identifiers are names that are given to Variable, Arrays, Functions, Structures etc.
For example-int pen; Here, Pen is an identifier.
An identifier must be unique because the compiler needs to identify it during the execution of a program. And identifiers must be different from keywords, that is, Keyword and Identifiers cannot have the same name.
The identifiers are depicted in c language as follow:
1. Basic the Letter,Number,symbol of c language
2. Identifiers
3. Instruction
1. Basic the Letter,Number,Symbol of c language:
* A to Z
* a to z
* 0 to 9
* (,{,:,"/,\,?,<,>,+,=,*,&,%,!
2. Identifiers:
(I). Constant
(II). Variable
(III). Keyword
(I). Constant:
A constant is a data item that will not be changed during execution of a single program. The constan in C language is as follows.
*тЮбя╕П Integer constant
Constant тЮбя╕П *тЮбя╕П Float point constant
*тЮбя╕П Character constant
*тЮбя╕П String constant
* Integer constant:
An integer constant without any decimal point is a whole number.
* Float point constant:
Numerical values тАЛтАЛ(fractional) numerical values тАЛтАЛare called floating point constant, where we can also use + and - negative number and positive number. That is the octal number.
* Character constant:
The R character is included in a pair of [''] (single code), which is called character. Each character is associated with a unique value called [ASCII] valuse.
* String constant:
A sequential character of the character with [""] (Double code) string always ending with zero (Null) (\ ┬░).
(II). Variable:
Variable is an identifier that represents the address of the memory location.
Identifier:
A unique name given to a particular block / which is used in C
* 8 bits - 1 byte
* 1024 bytes - 1KB
* 1024KB - 1MB
* 1024MB - 1GB
* 1024GB - 1TB
(III). Keyword:
Keyword C are pre-defined reserved words used in programming.
тЮбя╕П Compiler known words
тЮбя╕П Keywords are part of syntax and cannot be used as 'identifier'.
For example: int, float, char, for, if, while, include, auto, break, register, etc.
ЁЯЪжRule:
* Keyword not allowed.
* Alphabets and numbers allowed.
* Allowed except special character '_' (underscore).
* It should not start with number.
* White blanks or spaces are not allowed.
Difference between keywords and identifiers
![]() |
Identifier & Keyword |
3. Instruction:
1. Data type declaration instruction
2. Input/Output instruction
3. Airthmetic instruction
4. Control instruction
Kinds of identifiers:
C languege defines two types of identifiers.
1. Internal
2. External
1. Internal identifier:
If the identifier is used in the external link process, it is called external. These identifiers are also known as external names; Functio name and Global variable are names that are shared between the source file, s. It contains 63 important characters.
2. External identifier:
If the identifier is not used in the external link process, it is called internal. These identifiers are also known as internal names; Local variable names are included. It contains at least 31 important characters.
Hindi translationред рд╣рд┐рдиреНрджреА рдЕрдиреБрд╡рд╛рдж ЁЯСЗЁЯСЗ
What are Identifiers:
Identifiers рд╡реЗ рдирд╛рдо рд╣реИрдВ рдЬреЛ Variable, Arrays, Functions, Structures рдЖрджрд┐ рдХреЛ рджрд┐рдП рдЬрд╛рддреЗ рд╣реИрдВред
рдЙрджрд╛рд╣рд░рдг рдХреЗ рд▓рд┐рдП- int pen; рдпрд╣рд╛рдВ, Pen рдПрдХ Identifier рд╣реИ!
рдПрдХ Identifier рдЕрджреНрд╡рд┐рддреАрдп(unique) рд╣реЛрдирд╛ рдЪрд╛рд╣рд┐рдП рдХреНрдпреЛрдВрдХрд┐ рдХрдВрдкрд╛рдЗрд▓рд░ рдХреЛ рдПрдХ рдХрд╛рд░реНрдпрдХреНрд░рдо(program)рдХреЗ рдирд┐рд╖реНрдкрд╛рджрди рдХреЗ рджреМрд░рд╛рди(during) рдЗрд╕рдХреЛ identify рдХрд░рдиреЗ рдХреА рдЖрд╡рд╢реНрдпрдХрддрд╛ рд╣реЛрддреА рд╣реИред рдФрд░ identifiers keywords рд╕реЗ рднрд┐рдиреНрди рд╣реЛрдирд╛ рдЪрд╛рд╣рд┐рдП, рдЕрд░реНрдерд╛рддреН Keyword рдФрд░ Identifiers рдХрд╛ рдПрдХ рд╣реА рдирд╛рдо рдирд╣реАрдВ рд╣реЛ рд╕рдХрддрд╛ рд╣реИред
The identifiers are depicted in C language as follow:
1. Basic the Letter,Number,symbol of c language
2. Identifiers
3. Instruction
1. Basic the Letter,Number,Symbol of c language
* A to Z
* a to z
* 0 to 9
* (,{,:,"/,\,?,<,>,+,=,*,&,%,!
2. Identifiers
(I). Constant
(II). Variable
(III). Keyword
(I). Constant:
рдПрдХ constant рдПрдХ data item рд╣реИ, рдЬрд┐рд╕реЗ рдХрд┐рд╕реА рдПрдХ program рдХреЗ рдирд┐рд╖реНрдкрд╛рджрди(execution) рдХреЗ рджреМрд░рд╛рди рдирд╣реАрдВ рдмрджрд▓рд╛ рдЬрд╛рдПрдЧрд╛. C language рдореЗрдВ constan рдЗрд╕ рдкреНрд░рдХрд╛рд░ рд╣реИред
*тЮбя╕П Integer constant
ConstantтЮбя╕П*тЮбя╕П Float point constant
*тЮбя╕П Character constant
*тЮбя╕П String constant
* Integer constant:
рдмрд┐рдирд╛ рдХреЛрдИ decimal point рдХреЗ рдПрдХ integer constant рдПрдХ whole number рд╣реИ,
* Float point constant:
рдЕрдВрд╢реЛрдВ(fractional) рд╡рд╛рд▓реЗ рд╕рдВрдЦреНрдпрд╛рддреНрдордХ рдорд╛рдиреЛрдВ(newmeric value) рдХреЛ floating point constant рдХрд╣рд╛ рдЬрд╛рддрд╛ рд╣реИ рд╡рд╣рд╛рдБ рд╣рдо + рдФрд░ - negative number рдФрд░ positive number рдХрд╛ рднреА рдЙрдкрдпреЛрдЧ рдХрд░ рд╕рдХрддреЗ рд╣реИрдВред рд╡рд╣ octal number рд╣реИред
* Character constant:
R рдЕрдХреНрд╖рд░(character) рдХреЛ [' '](single code) рдХреА рдЬреЛрдбрд╝реА рдореЗрдВ рд╢рд╛рдорд┐рд▓ рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИ, рдЬрд┐рд╕реЗ character рдХрд╣рд╛ рдЬрд╛рддрд╛ рд╣реИ рдкреНрд░рддреНрдпреЗрдХ character unique value рдХреЗ рд╕рд╛рде рдЬреБрдбрд╝рд╛ рд╣реБрдЖ рд╣реИ рдЬрд┐рд╕реЗ [ASCII] valuse рдХрд╣рддреЗ рд╣реИ
* String constant:
[""] ( Double code) string рдХреЗ рд╕рд╛рде character рдХрд╛ рдПрдХ рдХреНрд░рдорд┐рдХ рдХреНрд░рдо(sequential) рд╣рдореЗрд╢рд╛ рд╢реВрдиреНрдп(Null) рд╕реЗ (\ ┬░) рд╕рдорд╛рдкреНрдд рд╣реЛрддрд╛ рд╣реИ
(II). Variable:
Variable рдПрдХ Identifier рд╣реЛрддрд╛ рд╣реИ, рдЬреЛ memory location рдХреЗ address рдХреЛ рдкреНрд░рддрд┐рдирд┐рдзрд┐рддреНрд╡ (represent) рдХрд░рддрд╛ рд╣реИ!
Identifier:
рдПрдХ particular block рдХреЛ рджрд┐рдпрд╛ рдЧрдпрд╛ рдЕрдиреЛрдЦрд╛ рдирд╛рдо / рдЬрд┐рд╕рдХрд╛ рдЙрдкрдпреЛрдЧ C рдореЗрдВ рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИ
* 8 bits - 1 byte
* 1024 bytes - 1KB
* 1024KB - 1MB
* 1024MB - 1GB
* 1024GB - 1TB
(III). Keyword:
Keyword C programming рдореЗрдВ рдЙрдкрдпреЛрдЧ рдХрд┐рдП рдЧрдП рдкреВрд░реНрд╡-рдирд┐рд░реНрдзрд╛рд░рд┐рдд рдЖрд░рдХреНрд╖рд┐рдд рд╢рдмреНрдж рд╣реИрдВ!
тЮбя╕П Compiler known words
тЮбя╕П Keyword syntax рдХрд╛ рд╣рд┐рд╕реНрд╕рд╛ рд╣реИрдВ рдФрд░ рдЙрдиреНрд╣реЗрдВ 'identifier' рд░реВрдк рдореЗрдВ рдЙрдкрдпреЛрдЧ рдирд╣реАрдВ рдХрд┐рдпрд╛ рдЬрд╛ рд╕рдХрддрд╛ рд╣реИ!
рдЙрджрд╛рд╣рд░рдг рдХреЗ рд▓рд┐рдП: int, float, char, for, if, while, include, auto, break, register, рдЖрджрд┐
ЁЯЪжRule:
* Keyword рдХреА рдЕрдиреБрдорддрд┐ рдирд╣реА рд╣реИ
* Alphabets рдФрд░ numbers рдХреА рдЕрдиреБрдорддрд┐ рд╣реИ
* Special character рдХреЛ рдЫреЛрдбрд╝рдХрд░ рдЕрдиреБрдорддрд┐ рд╣реИ тАЩ_тАЩ (underscore)
* рдпрд╣ number рд╕реЗ рд╢реБрд░реВ рдирд╣реАрдВ рд╣реЛрдирд╛ рдЪрд╛рд╣рд┐рдП
* White blanks рдпрд╛ spaces рдХреА рдЕрдиреБрдорддрд┐ рдирд╣реАрдВ рд╣реИ
![]() |
Keyword & Identifier |
Osm
ReplyDeleteNice
ReplyDeleteSuper
ReplyDeleteNice sir g
ReplyDeleteOsm
ReplyDeleteOsm
ReplyDeleteAwesome
ReplyDeleteAwesome Sir gЁЯШНЁЯдФЁЯСМ
ReplyDeleteIncredible ЁЯСМ
ReplyDelete