Keywords in cpp, C/C++ Programming

Define Keywords in C++

Keywords:

Keywords are the words already used by C++ in its compiler.  They are also known as reserved words, because these words are completely defined for C++ interpretation.  Therefore keywords cannot be used to declare any identifiers in the program.   Some of the example of keywords are, if, else, for, operator,  while, cout, void, class, cin,  inline, friend, etc.  Therefore a program will not compile with keyword as identifier.

int if; This is an wrong statement because a variable name or identifier cannot havkeyword if as the variable.

Posted Date: 9/20/2012 7:28:12 AM | Location : United States







Related Discussions:- Keywords in cpp, Assignment Help, Ask Question on Keywords in cpp, Get Answer, Expert's Help, Keywords in cpp Discussions

Write discussion on Keywords in cpp
Your posts are moderated
Related Questions
find wether specific word is inside a pool of word and what is the direction e.g. north

Implement (a part of) electronic election Scenario where following political parties are participating in election: PPP, PML and PTI.  Create a class PollingStation where it stor

It is a class defined in the scope of a function _ any function, whether a member functions or a free function. For instance: // Example : Local class // int f() { c

write a function named "fact"that takes one integer arguments,call them "num" and returns as ..............

Define Keywords in C++ K e y w o r d s: K e y w o rd s a r e t h e w o rd s a l r e a d y u s e d b y C + + i n i t s c

Define Commonly Used Built-in Library Functions? Comprise opened a file pointer you will desire to use it for either input or output. The C language supplies a set of functions

for object, malloc allocates memory in heap however doesn't invoke object's constructor to initialize the object. new allocates memory & also invokes constructor to initialize the

(a) Write a recursive procedure (digits n) that computes the number of digits in the integer n using a linear recursive process. For example, (digits 42) should return 2 and (digit

how can i make a program with !(not) operator