what is the main difference between c and c++?
Answer Posted / madhavendrapratapshahi
C IS AN PROCEDURAL PROGRAMMING LANGUAGE.BUT C++
OBJECT ORIENTED PROGRAMMING LANGUAGE .C FILE EXTENSION
IS .C BUT C++ FILE EXTENSION IS .CPP .VARIBLE IN C
ARE CALLED DATA MEMBER IN C++. C++ SUPPORT FIVE
COCEPT OF OOP,S BUT C DOES NOT SUPPORT THESE CONCEPT.
WE CAN USE ALL FUNCTION IN C++ WHICH ARE USED IN
C LANGUAGE. IN C++ DATA MEMBER ARE DECLARE IN ANY
WHERE IN MEMBER FUNCTION.C++ SUPPORT DATA SECURITY OR
DATA HIDING BUT C DOES NOT SUPPORT THIS FUNCTION.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What are two types of polymorphism?
Why is polymorphism important in oop?
What is inheritance and how many types of inheritance?
Explain virtual inheritance?
What is encapsulation in ict?
What is polymorphism what are the different types of polymorphism?
What is object in oops?
What are benefits of oop?
What is polymorphism explain its types?
Why is abstraction needed?
What is the benefit of oop?
What is the example of polymorphism?
Why is there no multiple inheritance?
When not to use object oriented programming?
What is the importance of oop?