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
C program to reverse the elements of array: #define rows 3 #define cols 3 void main() {                 int i=0,j=0;                 int arr[rows][cols];

c program of double linked list with full explanation

write a program to calculate the cuboid

Input Output Most languages have "statements" to perform I/O . Though in C and C++ we use "functions" to perform I/O. C++ also has its own I/O mechanism - the cin and cout obje

Encapsulation and Data Hiding The property of being a self-contained unit is known as encapsulation. The idea that the encapsulated unit can be used without knowing how it work


Write a ''C'' program to accept any 3 digit integer number from the keyboard and display the word equivalent representation of the given number.


brief note on multiple stack

Explain Formatted Input Output with File Pointer? Likewise there are equivalents to the functions scanf and printf which write or read data to files. These are called fscanf a