What are the key differences between C & C++

Editorial / Best Answer

SARAVANAN SIVAJI  

  • Member Since Aug-2007 | Aug 1st, 2007


The main difference between C and C++ are:

1.  C is a procedural language whereas C++ is a non-procedural language.
2.  C gives importance to functions (methods) whereas C++ gives importance to both functions and data.
3.  C allows the data to flow around the functions freely whereas C++ wraps up the data and functions together, due to that datas were not allowed to flow around freely in C++.  This is said to be Encapsulation in C++
 

Other differences, ( actucally there is lot to mention......here are the two )

1.  C allows struct, union, and enum types to be declared in function prototypes, whereas C++ does not.

2.  A struct, union, or enum declaration in C++ declares an implicit typedef, while in C it does not

Showing Answers 1 - 13 of 13 Answers

AparnA

  • May 5th, 2005
 

C is Structured Programming language; 
C++ is Object Oriented Programming language

  Was this answer useful?  Yes

SARAVANAN SIVAJI

  • Aug 1st, 2007
 


Here are the two main difference between C and C++:

1.  C is a procedural language whereas C++ is non-procedural language
2.  C gives mostly importance to functions whereas C++ gives importance to both functions and data

  Was this answer useful?  Yes

SARAVANAN SIVAJI

  • Aug 1st, 2007
 

Othere differences:

1.  C allows struct, union, and enum types to be declared in function prototypes, whereas C++ does not.

2.  A struct, union, or enum declaration in C++ declares an implicit typedef, while in C it does not

  Was this answer useful?  Yes

The main difference between C and C++ are:

1.  C is a procedural language whereas C++ is a non-procedural language.
2.  C gives importance to functions (methods) whereas C++ gives importance to both functions and data.
3.  C allows the data to flow around the functions freely whereas C++ wraps up the data and functions together, due to that datas were not allowed to flow around freely in C++.  This is said to be Encapsulation in C++
 

Other differences, ( actucally there is lot to mention......here are the two )

1.  C allows struct, union, and enum types to be declared in function prototypes, whereas C++ does not.

2.  A struct, union, or enum declaration in C++ declares an implicit typedef, while in C it does not

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions