Sunday, April 12, 2009

KEYWORDS IN C++

Keywords
In C++ we can use all the keywords of C language (32 keywords).
C language key words are listed below
auto
break
case
char
const
continue
default
do
double
enum
else
extern
float
for
goto
if
int
long
return
register
signed
short
static
sizeof
struct
witch
typedef
union
unsigned
void
volatile
while

Apart from that we have some new keywords in C++. They are explicitly reserved identifiers and cannot be used as names for the program variables or other user-defined program elements/ the C++ keywords are listed below.
class
friend
catch
operator
private
protected
virtual
inline
public
template
this
throw
try

No comments:

Post a Comment