TOKENS Tokens are the basic buildings blocks in language which are constructed together to write a program.Tokens is each and every smallest individual units in a program are known as tokens. C++ tokens are six type . Keywords : struct ,break , else long , switch , case ,enum , register , typedef. Identifiers :main, total. Constants : 3.14 . Strings : "hello", "string". Operators : +, - ,/ ,*. Special symbols : (),{}. Example #include<iostream.h> #include<Conio.h> int main() { ...
HELLO WORLD PROGRAM AND EXPLANATION • Hello world program # include<iostream.h> #include<conio.h> // pre-processor directives ,header files Void main () // main () is where program execution start { Clrscr (); //its clear output of the previous program. Cout<<”HELLO WORLD”; // prints hello world . Getch(); //its hold the output screen of the program. } OutPut HELLO WORLD Explanation Above program is the simple c++ program which pri...