Editorial / Best Answer
SARAVANAN SIVAJI
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
What are the key differences between C & C++
Editorial / Best Answer
SARAVANAN SIVAJIProfile Answers by SARAVANAN SIVAJI Questions by SARAVANAN SIVAJI
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
Related Answered Questions
Related Open Questions