what is the main difference between c and c++?

Answer Posted / amitab

++ can be considered as the Develop form of C.Its originated
from c and include the most important concept i.e. "Object
Oriented".
The Most common Difference are as follow :
1.C is Procedural Language and C++ is Procedural+Objected
Oriented.
2.C contains 32 Keywords,C++ extends it to 52 Keywords.
3.Data is not secured in C due to non-object oriented.
4.C followe top down approach while C++ follow Bottomup
approach.
5.We can use function inside structure in C++,but not in C.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is overloading and its types?

618


What are oops methods?

568


How can you overcome the diamond problem in inheritance?

770


Can we define a class within the interface?

555


What is oops concept with example?

580






What is encapsulation in simple terms?

541


What are benefits of oop?

639


What is the main purpose of inheritance law?

673


What is a class and object?

600


Write a program to reverse a string using recursive function?

1794


What is the use of oops?

623


Can an interface inherit a class?

565


What is the full form of oops?

612


Can we have inheritance without polymorphism?

617


What is abstraction encapsulation?

659