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 |
Give example of a pure virtual function in c++?
How many types of comments are there in c++?
How a macro differs from a template?
How do you invoke a base member function from a derived class in which you have not overridden that function?
How many namespaces are there in c++?
Which one is better- macro or function?
Describe Trees using C++ with an example.
what are the iterator and generic algorithms.
Describe linkages and types of linkages?
What are the 4 types of library?
Write about a nested class and mention its use?
let a,b,c be three integer numbers.write a c++ program with a function void rotate 1()such that a->b->c and c->a.