Difference between revisions of "Keyword"

esse quam videri
Jump to: navigation, search
(Examples)
Line 4: Line 4:
  
 
=Examples=
 
=Examples=
Reference Values:
+
'''Reference Values:'''
 
- double
 
- double
 +
 
- int  
 
- int  
 +
 
- char
 
- char
 +
 
- string
 
- string
 +
 
- enum
 
- enum
 +
 
- void
 
- void
  
Statements:
+
'''
 +
Statements:'''
 
- break
 
- break
 +
 
- if / else
 
- if / else
 +
 
- for / foreach
 
- for / foreach
 +
 
- switch / case / default
 
- switch / case / default
 +
 
- do / while
 
- do / while
 +
 
- return
 
- return
  

Revision as of 22:24, 9 April 2020

Definition

A keyword is a reserved word that has an inherent meaning to the compiler and thus cannot be used as an identifier within the language. Keywords often represent a language's possible reference values and statements. They are always written in lowercase, so in case-sensitive languages such as C versions of the same word that are not all lowercase can be used as identifiers.

Examples

Reference Values: - double

- int

- char

- string

- enum

- void

Statements: - break

- if / else

- for / foreach

- switch / case / default

- do / while

- return

Resources

See also

Notes

External Links