what is the main difference between c and c++?
Answer Posted / er.ashish singh
1)C++ allows the programmer to create classes, which are
somewhat similar to C structures. However, to a class can
be assigned methods, functions associated to it, of various
prototypes, which can access and operate within the class,
somewhat like C functions often operate on a supplied
handler pointer.
2)Although it is possible to implement anything which C++
could implement in C, C++ aids to standarize a way in which
objects are created and managed, whereas the C programmer
who implements the same system has alot of liberty on how
to actually implement the internals, and style among
programmers will vary alot on the design choices made.
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What are different oops concepts?
Can you inherit a private class?
What is abstraction encapsulation?
What do you mean by overloading?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
Can bst contain duplicates?
What do you mean by Encapsulation?
What is oops concept with example?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
What is for loop and its syntax?
What is an interface in oop?
Is oop better than procedural?
How do you achieve runtime polymorphism?
write a C++ program for booking using constructor and destructor.