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 |
What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass
What is the difference between method overloading and method overriding in c++?
Can you declare an array without a size in c++?
What is the difference between Class and Structure?
40 Answers HP, IBM, Samsung, TCS,
What is the difference between set and map in c++?
what is the use of templates?
What is stream and its types in c++?
What is difference between n and endl in c++?
Show the declaration for a pointer to function returning long and taking an integer parameter.
sizeof- is it functioning statically or dynamically?
List down the guideline that should be followed while using friend function.
What happens when you make call 'delete this;'?