Search

History of c++ |

history :
  •  C++ was invented by Bjarne Stroustrup in 1979 , at Bell laboratories in murray hill , New Jersey. He initially called new language "C with classes" . in 1983 the name was changed to C++ . 

  • instead, he enhanced an already highly successful language . most of the features that stroustrup added to c were designed to support object-oriented programing . in essence , C++ is object-oriented version of c. 

   

feature : 
  1. middle level language .
  2. it support object-oriented programing.
  3. C++ follow bottom up approch.
  4. java is written in C++
best book for c language and DSA available on amazon

Formal arguments | types of Formal arguments | call by value | Call by address | call by reference |


 Types Of Formal Arguments : 

It is of three types ------------

1.  ordinary variable  of any type

2.  pointer variable

3. reference variable


Call by value :  

                      when formal arguments are ordinary variables , it is function call by value.

int sum(int x , int y) 

{


}


Call by address :

                 when formal arguments are pointer variables , it is function call by address.

int sum(int *x , int *y) 

{


}


call by reference :

                 when formal arguments are reference variables , it is function call by reference.

int sum(int &x , int &y) 

{


}

Best book to learn c language and DSA , available in amazon : 


DATA TYPES

 "Data types specifies the type and size of data . " A program contains different types of data (integer , real , character etc.) ...