Skip to main content

Posts

TOKENS ,IDENTIFIERS & CONSANTS

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()                 {                  ...
Recent posts

Simple hello world program and explanation

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...

Features of c++

  Features   Object oriented Programming language : This main advantage of C++ is, it is object oriented programming language. It follow concept of oops like polymorphism, inheritance, encapsulation, abstraction. Simple :Every C++ program can be written in simple English language so that it is very easy to understand and developed by programmer. case sensitive programming language: In C++ programming 'break and BREAK' both are different. If any language treats lower case latter separately and upper case latter separately than they can be called as case sensitive programming language Example c, c++, java, .net are sensitive programming languages. other wise it is called as case insensitive programming language Example HTML, SQL is case insensitive programming languages.  Platform dependent : A language is said to be platform dependent whenever the prog...

Introduction of c++

C++            Is powerful ,complied ,genenral-purpose ,case-sensitive programming language that supports procedural,object-oriented programming,                 Features of c++  Object-oriented programming language.  Simple. Case sensitive.  Platform dependent. Syntax based language. Powerful. Portability. Compiler based. Efficient use of pointer.