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
A: 1.      By using const protects you against programming errors which inadvertently alter data. 2.      By using const allows function to procedure const and non-const actu


Project Description: Currently seeking someone who can create me a software application (google chrome crx file_ that will auto add all shoe sizes to cart directly and if not av

Padovan String Problem Description A Padovan string P(n) for a natural number n is defined as: P(0) = ‘X’ P(1) = ‘Y’ P(2) = ‘Z’ P(n) = P(n-2) + P(n-3), n>2 where + denotes s

I need whatsapp software in my website Project Description: i need whatsapp software in my website same this whatsapp if anyone can make to me this in my website Skills


Write an algorithm for multiplication of two sparse matrices using Linked Lists.

How to write an inline class member function In addition to global functions, you may request that non-static member functions of a class be inlined.  The normal method of doin

What's the order that objects in an array are destructed? Need assistance please explain it with example.

What are pre-processor directives? - Pre-processor directives are placed at the beginning of a C program. They begin with # symbol. - This is the place, where library files