Skip to main content

C++ Reserved Keywords

C++ Reserved Keyword


Reserved keywords are well defined.We use them in one or more classes more than one time to get desire output from whole project.
C++ Keywords are reserved words which can only be use to perform special task.
Compiler already know the meaning of each keyword. Each keyword has a special meaning and it can't be changed by the programmer.
Example:
if , for , while , int , class keywords perform different task in different ways each keyword uses it's own syntax to perform logical operations depends on our requirement.
Reserve Keywords :       
  1. #include <iostream>
  2. using namespace std;
  3. int main(){
  4.     int rollnumber = 10; 
  5.     string name = "ITech Taleem";
  6.     cout << name << endl;
  7.     cout << rollnumber << endl;
  8. return 0;
  9. }
Console:
ITechTaleem
10

Watch Video

C++ in Urdu Hindi Reserved Keywords Beginners Tutorial Visual Studio 2017

Comments