Keywords in C++

Keywords in C++
Keywords in C++

Keywords in C++

Keywords can be referred as the reserved words or predefined words that carry some fixed meaning and task in our program. There is fixed number of keywords in C++.They can neither be modified nor can be used as Identifiers in program. We need not to define keywords, their meaning and task is already known to the compiler.

Following is the list of keywords in C++:

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



Caution!!! Keywords cannot be used as identifiers.

Leave a Reply

Insert math as
Block
Inline
Additional settings
Formula color
Text color
#333333
Type math using LaTeX
Preview
\({}\)
Nothing to preview
Insert
%d bloggers like this: