whats the difference between c and c++
Answers were Sorted based on User's Feedback
Answer / vivek
1>c is an procedural language and c++ is an object oriented.
2>c uses a TOP DOWN approach and c++ BOTTOM UP.
3>c++ introduces the idea of Data hiding using class..shere
in c there is no such facility for that purpose
4>c++ introduce the concept of the message passing with that
objects can communicate.
5>c++ has the inheritence, using it we can reuse our code.
6>Using polymorphism of c++ we can achieve the overloading
of operator and functions, but it is not possible in c.
there may be more difference on this but these are the main..
| Is This Answer Correct ? | 19 Yes | 0 No |
Answer / vivek kumar kanojia
C++ provides data hiding concept,using class and provide
facility for the data abstraction without showing background
details,whereas C does not support it.
C++ introduce the reusibility of code by inheritance but in
C it not avialable...
| Is This Answer Correct ? | 18 Yes | 1 No |
Answer / vishi
in c++ we can do nesting,inheritance which is not possible
in c.objects and classes are present in c++ not in c.
| Is This Answer Correct ? | 18 Yes | 3 No |
Answer / siva
so many we can say but the main difference is
C is structured oriented where as
C++ is object oreiented
| Is This Answer Correct ? | 11 Yes | 1 No |
Answer / mosin
c is structer oriented language.
c++ is object oriented language.
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / anjana
DIFFERENCE BETWEEN C AND C++
C c++
*STRUCTURED ORIENTED *OBJECT ORIENTED PROGRAMMING.
PROGRAMMING.
*RETURN TYPE IS NOT *RETURN TYPE IS MUST IN C++.
NEEDED.
*WE DIDN'T USE CLASS *WE ARE USING CLASS CONCEPT.
CONCEPT IN C.
*DATA HIDING IS NOT *DATA HIDING IS POSSIBLE.
POSSIBLE IN C.
*C IS A TOP DOWN APPROACH. *C++ IS A BOTTOM APPROACH.
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / shweta kapatkar
c is the structured oriented language &
c++ is the object oriented language
this is the main difference in c & c++ other than
1.c uses a TOP DOWN approach and c++ BOTTOM UP approach
2.In c++ we can do nesting,inheritance which is not
possible in c. & many more
| Is This Answer Correct ? | 6 Yes | 0 No |
what is namespace? what are the uses of namespace?
what does exactly the linker do?
Program to check whether a word is in all capital letters
what is object slicing?
What is a class oop?
The company is a fake company asking for money of RS10000 while training and not offering a job after training. My humble request to you people not to attend Astersys interview
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What is data binding in oops?
what is ns string? what is ns array?
What is oops in programming?
How can i write a code in c# to take a number from the user and then find all the prime numbers till the number entered by the user.
What is difference between #define and const?