What is the difference between C and CPP?



What is the difference between C and CPP?..

Answer / Sameer Dayal

"C and C++ are both general-purpose programming languages that share a common base syntax. However, C++ adds several features such as object-oriented programming (OOP), exception handling, namespaces, templates, and standard libraries.nnIn C, there are no classes or objects, and the memory management is done manually using dynamic memory allocation functions like malloc(), calloc(), realloc(), and free(). In contrast, C++ provides built-in support for OOP concepts like inheritance, polymorphism, encapsulation, and abstraction."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Explain the operation of overloading of an assignment operator.

1 Answers  


What is cloning?

1 Answers  


Do inline functions improve performance?

1 Answers  


What is #include iostream h in c++?

1 Answers  


What is searching? Explain linear and binary search.

1 Answers  


how can u create a doubly linked list with out using pointers?

2 Answers  


Write some differences between an external iterator and an internal iterator?

1 Answers  


Can I learn c++ in a week?

1 Answers  


How a new operator differs from the operator new?

1 Answers  


Check for Balanced Parentheses using Stack?

1 Answers  


What is c++ best used for?

1 Answers  


What are guid?

1 Answers  


Categories