What is the Difference between "C structure" and "C++
structure"?
Answer Posted / asif iqbal
1.C is a procedural oriented lang. whereas C++ is an object oriented lang.
2.C employs bottom-up aproach whereas C++ employs top-down approach.
3.In C main preference is given to functions whereas in C++ main preference is given to objects.
4.In C no inheritence,polymorphism whereas in C++ it exists.
5.In C data member and member functions are separated whereas in C++ they are within a Class.
| Is This Answer Correct ? | 1 Yes | 8 No |
Post New Answer View All Answers
How new/delete differs from malloc()/free?
What is class invariant in c++?
If I is an integer variable, which is faster ++i or i++?
What are built-in functions? What is the syntax for the definition?
What is lambda expression c++?
Explain the use of this pointer?
What are static variables?
an integer constant must have atleast one a) character b) digit c) decimal point
What is a singleton class c++?
What are pointer-to-members in C++? Give their syntax.
Can a program run without main function?
How can a called function determine the number of arguments that have been passed to it?
What is data type in c++?
Can you Mention some Application of C/C++?
Explain the concept of friend function in c++?