What is the Difference between "C structure" and "C++
structure"?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / guest
C++ DOES NOT HAVE INHERITANCE IT DOSE NOT HAVE POINTERS N
HEADER FILES
| Is This Answer Correct ? | 7 Yes | 33 No |
Is java a c++?
Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..
What are the various situations where a copy constructor is invoked?
Can I learn c++ as my first language?
What is the use of dot in c++?
What is a node class?
What is difference between class and structure in c++?
Write any small program that will compile in "C" but not in "C++"
If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?
Declare a class vehicle and make it an abstract data type.
class Foo { const int x; protected: Foo(int f); ~Foo(); }; Foo f; Referring to the sample code above, why will the class declaration not compile? a) The variable x is const. b) The destructor is protected. c) The destructor is not public. d) The constructor is protected. e) There is no default constructor.
How is computer programming useful in real life?