what is the main difference between c and c++?
Answers were Sorted based on User's Feedback
Answer / sameer
->C is a procedural programing language and c++ is a object
oriented programing language.
->C does not allow operator and function overloading.
C++ can allows function and operator overloading
| Is This Answer Correct ? | 1 Yes | 3 No |
Answer / sushant
c++ supports data hiding/data encapsulation while c does not
| Is This Answer Correct ? | 3 Yes | 5 No |
Answer / harsha
C has just the letter C... while C++ has more than just C...
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / heera singh
c is the object based programming language,
c++ is a Obect oriented programming language.
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / a.sivasankar
i)C++ is an pure object oriented program language.
ii)c++ is an bottom up approach but c is an top down approach
ii)In c++ using classes and object but not in c.
iv)In c++ one of main advantage reusability, we can deriving
the propertis from one class to another but not in c
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / narasimharao.v.v
The main Difference between C & CPP is,
1. C is a procedure oriented programming language, Where as CPP is an object oriented programming language.
2. C follows top down approach, where as CPP follows bottom up approach.
3. C= BCPL + B
4. CPP = C+ simula67.
5. C is not providing more security to the data. But cpp provides more security to the data than C.
6. CPP supports the object oriented features like Class, Object, Polymorphism, Inheritance etc. But C does not supports Object oriented features.
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / suraj pisal
operating system is desined in c & objects in operating
system is c++ therefor it is the object oriented prog & c
is not....
SAMAJ JANA ABHI YAAAR
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / sachin rajput
1)c is more faster than c++.
2)c is top to bottom but c++ vice-versa.
3)c is based on pops concepts but c++ is based on oops concepts.
4)c++ is secure language but c is not.
5)emphasis is on data rather than procedure in c++ but in case of c it is just opposite.
| Is This Answer Correct ? | 5 Yes | 8 No |
what do you mean by static member variable?
Is abstract thinking intelligence?
should we use linear search or binary search if elements are placed in random order or mixed?in both cases? i need a little bit detail ans?thnks
What is destructor example?
What type of Job you are providing?
Why many objects can working together? How objects working togetherM I want to see example code.
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
Question In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Question Submitted By :: Sunil Kumar I also faced this Question!! Rank Answer Posted By Re: In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Answer # 1 use copy constructors 0 Shanthila There is something to be taken care in destructor, in copy constructor, suppose the memory is assigned to the embedded member object pointer with the parameter passed value, but if some other objects of different class also are pointing to this memory, then if some one deletes the object then this class member pointer object will become dangling, or if the object is not deleted properly then there will be memory leak. Please suggest the design change required to handle or avoid this situation
How is polymorphism achieved?
how to write a java program for an output ****0 ***01 **012 *0123 01234
What is meant by oops concept?
why the memory allocated with new cant be freed using free()