Dev C%2b%2b Reserved Words Average ratng: 4,0/5 1367 reviews

Specific compilers may also have additional specific reserved keywords. Very important: The C language is a 'case sensitive' language. That means that an identifier written in capital letters is not equivalent to another one with the same name but written in small letters. Auto break case: char: const: continue: default: do double else: enum: extern float far: goto: if: int: long: register: return: short: signed: sizeof. Learn how to program in C with Dev-C IDE. Download here: is an full-featured Integrated Development Envir.

  1. Dev C 2b 2b Reserved Words List
  2. Dev C 2b 2b Reserved Words Unscramble
  3. Dev C 2b 2b Reserved Words Worksheets

C++ Reference Material
Keywords

This page contains a list of allthe reserved words in Standard C++,and a few predefined identifiersfor the sake of comparison.

Recall the distinction between reservedwords and predefined identifiers,which are collectively referred to (by us, atleast) as keywords. But be aware thatthis terminology is not standard. For example,some authors will use keyword in thesame sense that we have used reserved word.

C++ Reserved Words

The reserved words of C++ may be conveniently placed into severalgroups. In the first group we put those that were also present in theC programming language and have been carried over into C++. There are32 of these, and here they are:There are another 30 reserved words that were not in C, are thereforenew to C++, and here they are:The following 11 C++ reserved words are not essential when the standardASCII character set is being used, but they have been added to providemore readable alternatives for some of the C++ operators, and also tofacilitate programming with character sets that lack characters neededby C++.

Note that your particular compiler may not be completely up-to-date,which means that some (and possibly many) of the reserved words inthe preceding two groups may not yet be implemented.

Some Predefined Identifiers

Beginning C++ programmers are sometimesconfused by the difference between thetwo terms reserved word andpredefined identifier, andcertainly there is some potential forconfusion.

One of the difficulties is that somekeywords that one might 'expect'to be reserved words just are not.The keyword main is a primeexample, and others include thingslike the endl manipulator andother keywords from the vastcollection of C++ libraries.

For example, you could declare avariable called main insideyour main function, initializeit, and then print out its value (butyou probably shouldn't, except asan experiment to verify that you can!).On the other hand, you could notdo this with a variable named else.The difference is that else isa reserved word, whilemain is 'only' a predefinedidentifier.

Here is a very short list of some of the predefined identifiers you mayhave encountered:

Dev C 2b 2b Reserved Words List

  • Related Questions & Answers
  • Selected Reading
C++ProgrammingObject Oriented Programming

Keywords are those words whose meaning is already defined by Compiler. These keywords cannot be used as an identifier. Note that keywords are the collection of reserved words and predefined identifiers. Predefined identifiers are identifiers that are defined by the compiler but can be changed in meaning by the user.

Dev C 2b 2b Reserved Words Unscramble

For example, you could declare a variable called main inside your main function, initialize it, and then print out its value (but ONLY do that to verify that you can!). On the other hand, you could not do this with a variable named else. The difference is that else is a reserved word, while main is 'only' a predefined identifier.

There are a total of 95 reserved words in C++. The reserved words of C++ may be conveniently placed into several groups. In the first group, we put those that were also present in the C programming language and have been carried over into C++. There are 32 of these.

There are another 30 reserved words that were not in C, are therefore new to C++ programming language.

There are 11 C++ reserved words that are not essential when the standard ASCII character set is being used, but they have been added to provide readable alternatives for a few of the C++ operators, and also to facilitate programming with character sets that lack characters required by C++.

Dev

Dev C 2b 2b Reserved Words Worksheets

Here is a list of all these reserved words:

alignas (since C++11)
double
reinterpret_cast
alignof (since C++11)
dynamic_cast
requires (since C++20)
and
else
return
and_eq
enum
short
asm
explicit
signed
atomic_cancel (TM TS)
export(1)
sizeof(1)
atomic_commit (TM TS)
extern(1)
static
atomic_noexcept (TM TS)
false
static_assert (since C++11)
auto(1)
float
static_cast
bitand
for
struct(1)
bitor
friend
switch
bool
goto
synchronized (TM TS)
break
if
template
case
import (modules TS)
this
catch
inline(1)
thread_local (since C++11)
char
int
throw
char16_t (since C++11)
long
true
char32_t (since C++11)
module (modules TS)
try
class(1)
mutable(1)
typedef
compl
namespace
typeid
concept (since C++20)
new
typename
const
noexcept (since C++11)
union
constexpr (since C++11)
not
unsigned
const_cast
not_eq
using(1)
continue
nullptr (since C++11)
virtual
co_await (coroutines TS)
operator
void
co_return (coroutines TS)
or
volatile
co_yield (coroutines TS)
or_eq
wchar_t
decltype (since C++11)
private
while
default(1)
protected
xor
delete(1)
public
xor_eq
do
register(2)