A keyword is a word or identifier that has a particular meaning to its programming language.


A keyword is a reserved word. It cannot be used as the name of a variable or subroutine.

The meaning of a particular keyword differs from language to language.

Modifier

A modifier keyword, or modifier, is a keyword that modifies an entity.

For example, the C++ type long int is an integer modified by the modifier keyword long to increase its range.

C++

In C++ the standard reserved keywords are:
asm, auto, bool, break, case, catch, char, class, const, const_cast, continue, default, delete, do, double, dynamic_cast, else, enum, explicit, export, extern, false, float, for, friend, goto, if, inline, int, long, mutable, namespace, new, operator, private, protected, public, register, reinterpret_cast, return, short, signed, sizeof, static, static_cast, struct, switch, template, this, throw, true, try, typedef, typeid, typename, union, unsigned, using, virtual, void, volatile, wchar_t, while

The following are alternative representations for operators and thus reserved keywords under some circumstances:
and, and_eq, bitand, bitor, compl, not, not_eq, or, or_eq, xor, xor_eq

Individual C++ compilers may also include additional specific reserved keywords.

Java

In Java the standard reserved keywords are:
abstract, assert, boolean, break, byte, case, catch, char, class, const, continue, default, do, double, else, enum, extends, final, finally, float, for, goto, if, implements, import, instanceof, int, interface, long, native, new, package, private, protected, public, return, short, static, strictfp, super, switch, synchronized, this, throw, throws, transient, try, void, volatile, while

The following are literals and thus reserved keywords:
true, false, null


example GCC C++
Borland C++ Compiler
Java
home Home Page