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
An experiment succeeds twice as often as it fails. Find the chance that in the next six trials there will be at least four successes.

big-m method operation reseach in progrmme c++..

Develop a client and a server for an instant messaging system based on UDP and IPv4

A string S is said to be "Super ASCII", if it contains the character frequency equal to their ascii values. String will contain only lower case alphabets (''a''-''z'') and the asci

My file pointer is going to the location which i specified and writing the value but it is in next line so,please help me iam developing in visual studio6

(Random Numbers) Write statements that assign random integers to the variable n in the following ranges: a) 1 ≤ n ≤2 b) 1 ≤ n ≤100 c) 0 ≤ n ≤9 d) 1000 ≤ n ≤1112 e)

if one won't explicitly call the destructor of a local; then how does he handle the above situation?

depth description of the inside and outside typecasting

The program reads two numbers and a character (operator). If the character is "+" then sum is displayed. If it is "-"then difference is displayed. If it is "*" then product is disp

Class Templates In addition to function  templates, C++  also supports the  method of class templates. By definition, a class template is a class definition that explains a fam