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
Define global variable in c++ program: How to define a global variable and need of global variable in c++ program. int main() {    int m=20;    clrscr();    for

Write a Program to illustrate the Call by Reference? Here is an illustration: #include . int compute_sum(int *n); int main( void) { int n=3, sum; printf("%d\n",n); /

how to create program in c that will system restart

Problem 1. Discuss polymorphism in c++. Explaining Polymorphism 2. Write a program in c++ to read a 3X2 matrix and find smallest number in that matrix. Writin


Hello. I need a solution for this assignment. It is for C++ Language: Create a BusinessPartner class that contains a first name, company name, and a telephone number. Create a Con

I want VLC Pitch Changing Addon Project Description: Required: Plugin to modify the pitch of running tracks in VLC without changing the speed. Skills required are C Progra

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b.

There are ''''n'''' ants on a ''''n+1'''' length rod. The ants are numbered from 1 to n and are initially placed at positions starting from position 1 till position n. They are mov

P o i n t e r d e c l a r a t i o n f o r C l a s s : M m; M * p m; / / C la ss M i s d e c l a r e d a s