what is the main difference between c and c++?
Answer Posted / anky
C++ is an extension of C language. This means that you can
not only use the new features introduced with C++ but can
also use the power and efficiency of C language. C and C++
are no more language for writing compilers and other
languages, these general purpose languages are used
worldwide in every field.
Here is a list of differences between c and c++.
The main difference between C and C++ is that C++ is object
oriented while C is function or procedure oriented. Object
oriented programming paradigm is focused on writing programs
that are more readable and maintainable. It also helps the
reuse of code by packaging a group of similar objects or
using the concept of component programming model. It helps
thinking in a logical way by using the concept of real world
concepts of objects, inheritance and polymorphism. It should
be noted that there are also some drawbacks of such
features. For example using polymorphism in a program can
slow down the performance of that program.
On the other hand, functional and procedural programming
focus primarily on the actions and events, and the
programming model focuses on the logical assertions that
trigger execution of program code.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is abstraction oop?
Explain the concepts involved in Object Oriented programming.
What are the benefits of oop?
Why is polymorphism needed?
Can a destructor be called directly?
What is protected in oop?
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
What is stream in oop?
What is abstraction in oops with example?
What do you mean by abstraction?
to find out the minimum of two integer number of two different classes using friend function
What are the benefits of interface?
Why do while loop is used?
What is meant by multiple inheritance?
Is react oop?