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
Can we have inheritance without polymorphism?
What is a null tree?
What is overriding vs overloading?
Why is polymorphism important in oop?
What are the features of oop?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
How Do you Code Composition and Aggregation in C++ ?
Can main method override?
What is destructor give example?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
Why do we use oop?
What are objects in oop?
What are the 5 oop principles?
What is difference between pop and oop?
What is abstraction encapsulation?