Breaking News
Loading...

Difference between c and c++



  • Actually c is a procedural programming language which cann't face the real world problem. It has some drawback like a global data is shared by all function and if in a large program it is find out difficult that which function uses which data. 
         On the other hand c++ is an object oriented programming language which eliminate some pitfall of  
          conventional or procedural programming language. It is a concept or approach for designing a new       
         software. It is nothing to do with any programming language although a programming language which  
         support the oops concept to make it easier to implement 




  •  In object oriented programming, the programmer can solveproblems by breaking them down into real-life objects (itpresented the programmer with an opportunity to mirror reallife). What is an object? This topic is dealt with extensively in the chapter on ‘Objects and Classes’ but abrief introduction is provided here.

         Example Consider the category of cars. All cars have some common features (for example all cars have 
         four wheels, an engine, some body colour, seats etc.). Are all cars the same? Of course not. A Fiat and a 
         Ford aren’t the same but they are called as cars in general. In this example cars will form a class and 
         Ford (or Fiat) will be an object.

         For those people who know C programming, it would be useful to know the differences between C and 
         C++. Basically C++ includes everything present in C but the use of some C features is deprecated in 
         C++ .


0 comments:

Post a Comment

 
Toggle Footer