Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
Keywords are the words that 'do' something. These words therefore cannot be used as variable names. In many C++ IDE's, these appear in bold.
int if = 3; //ERROR! |
Some keywords are only accepted by some standards:

alignas
alignof
asm
auto
bool
break
case
catch
char
char16_t
char32_t
class
const
constexpr
const_cast
continue
decltype
default
delete
do
double
dynamic_cast
else
enum
enum class
explicit
export
extern
extern template
false
float
for
friend
goto
if
inline
int
long
mutable
namespace
new
noexcept
nullptr
operator
private
protected
public
register
reinterpret_cast
return
short
signed
sizeof
static
static_assert
static_cast
struct
switch
template
this
thread_local
throw
true
try
typedef
typeid
typename
union
unsigned
using
virtual
void
volatile
wchar_t
while
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.