what is the main difference between c and c++?
Answer Posted / vijayasekar
1.C does not have any classes or objects. It is procedure
and function driven. There is no concept of access through
objects and structures are the only place where there is a
access through a compacted variable. c++ is object oriented
2.C structures have a different behaviour compared to c++
structures. Structures in c do not accept functions as
their parts.
3.C input/output is based on library and the processes are
carried out by including functions. C++ i/o is made through
console commands cin and cout.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Why multiple inheritance is not allowed?
What is class in oop with example?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
Can enum be null?
What is the highest level of cohesion?
How is class defined?
What are the 5 oop principles?
Why is polymorphism used?
What is multilevel inheritance explain with example?
can we make game by using c
What is abstraction in oops with example?
What is the difference between procedural programming and oops?
What polymorphism means?
What is destructor in oop?
What is a null tree?