what is the main difference between c and c++?
Answer Posted / nitish
1. c is a procedure oriented language. whereas c++ is an
object oriented language.
2. c is an predecessor to c++.
3. c uses functions for input/output as,
scan f/print f.
where as,
c++ uses functions as,
cin>>/cout<<.
4. c acted as a middle level language in the system
functioning. as, a link between
machine language and higher level language.
5. C don't support but c++ support polymorphism and
inheritance in its functioning..
and so on,
but one similarity between both of the 2 is that,
Both are case sensitive languages.
"A" means different from "a".
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
What polymorphism means?
What is abstract class in oop?
How oops is better than procedural?
What are the types of abstraction?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
why reinterpret cast is considered dangerous?
What is the difference between inheritance and polymorphism?
What is polymorphism and its types?
State what is encapsulation and friend function?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
What is encapsulation example?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
What is a class oop?
Why is encapsulation used?
What are the benefits of interface?