Identifier | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Identifier

What is identifiers

8th Aug 2017, 3:04 PM
Rashi Singh
Rashi Singh - avatar
6 Respostas
+ 1
n most languages, some character sequences have the lexical form of an identifier but are known asĀ keywordsĀ ā€“ for example,Ā ifĀ is frequently a keyword for an if clause, but lexically is of the same form asĀ igĀ orĀ fooĀ namely a sequence of letters. This overlap can be handled in various ways: these may be forbidden from being identifiers ā€“ which simplifies tokenization and parsing ā€“ in which case they areĀ reserved words; they may both be allowed but distinguished in other ways, such as via stropping; or keyword sequences may be allowed as identifiers and which sense is determined from context, which requires a context-sensitive lexer. Non-keywords may also be reserved words (forbidden as identifiers), particularly forĀ forward compatibility, in case a word may become a keyword in future. In a few languages, e.g.,Ā PL/1, the distinction is not clear. The scope, or accessibility within a program of an identifier can be either local or global. A global identifier is declared outside of functions and is available throughout the program. A local identifier is declared within a specific function and only available within that function.[1]
8th Sep 2017, 2:21 PM
Neil Bhowmik
Neil Bhowmik - avatar
+ 1
Kuch smjh nhi aaya
8th Sep 2017, 2:34 PM
Rashi Singh
Rashi Singh - avatar
+ 1
Hmm.. Ab a gya
8th Sep 2017, 2:59 PM
Rashi Singh
Rashi Singh - avatar
0
waahšŸ˜‚šŸ˜‚
8th Sep 2017, 2:52 PM
Neil Bhowmik
Neil Bhowmik - avatar
0
basically identifiers are keywords which help to carry out various functions in programming language....such as "new" is a keyword to define an object
8th Sep 2017, 2:53 PM
Neil Bhowmik
Neil Bhowmik - avatar
0
good
8th Sep 2017, 3:00 PM
Neil Bhowmik
Neil Bhowmik - avatar