The difference between C and C++


 The difference between C and C++ Programing language 

Hello everyone, here we are now going to discuss about the programing language C and C++ 
 This is most important and interesting topic to know about programing language i.e. C and C++
We divide this topic in two ways in the first we discuss about only C and in other portions we discuss about C++     that help us to know brief knowledge about these topics.
          Let's start....


First of all we are now going to discuss about C and then we will discuss about C++ in the next portion.

Programing language - C 

                          C  language was developed by Dennis Ritchie in 1972 at AT&T Bell labs.

1-  C  is a structured programing language.
2-  C  is a subset of C++.
3-. In C, language,  data and functions are the free entries.
4-  In  C, the functions can not be implemented inside the structures.
5-  Refrence variables are not supported in  C language.
6-   C  doesn't support the data hinding, therefore the data can be used by the outside world. 
7-  C supports neither function nor operator overloading. 
8-  C  language doesn't support the virtual and friend function.
9-  In C,  Scanf ( ) and Printf ( ) are mainly used for input/output.  
10-  C doesn't support object oriented programming therefore it has no support for polymorphism, encapsulation and inheritance.
11-  C doesn't have namespace features. 
  

Programing language C++

                  C++ was  developed by  Bjarne Stroustrup in 1979 with C++ Predecessor "C with classes". 

1.  Supports both structural and object - Oriented programming language.

2.  In the C++ language, both data and functions are encapsulated together in the form of a project.

3.  In C++,  the can be implemented inside the structures.

4.  C++ supports the reference variables.

5.  C++ supports data hiding, therefore the data can not be accessed by the outside world. 

6.   C++ supports both function and operater overloading.

7.  C++ supports both virtual and friend function.

8.  C++ mainly uses stream cin & cout to perform input and output operations.

9.  Being an object oriented programming language C++ supports polymorphism, encapsulation and inheritance.

10. C++ uses namespace which avoid name collision.

                    Thank you!

                  

Comments

Popular posts from this blog

A new state of matter

MAHABALIPURM --- ANCIENT HINDU TEMPLE

How people recovered if there is no medicine for corona virus (covid 19)