What are the main differences between C and C++?



What are the main differences between C and C++?..

Answer / nashiinformaticssolutions

In terms of syntax, compilation, and basic memory, C and C++ are very similar. Nonetheless, the two languages differ in a few significant ways:

• While C++ is a multi-paradigm language that supports procedural programming and other programming philosophies, C is a procedural programming language.
• Unlike C++, C does not allow object-oriented programming principles like encapsulation and polymorphism.

• Namespace, reference variable functionality, operator overloading, and function overloading are among the new features that C++ provides.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Explain the concept of dynamic allocation of memory?

0 Answers  


Should a constructor be public or private?

0 Answers  


What is volatile and pragma? When they are used?

1 Answers  


Are php strings immutable?

0 Answers  


What is the latest c++ version?

0 Answers  


What is dynamic and static typing?

0 Answers  


an operation between an integer and real always yeilds a) integer result b) real result c) float result

0 Answers  


Write a Program for find and replace a character in a string.

0 Answers  


How would you use qsort() function to sort an array of structures?

0 Answers  


Write bites in Turbo c++ Header ("Include") Files.

0 Answers  


What is a base class?

0 Answers  


What is the error in the code below and how should it be corrected?

0 Answers  


Categories