what is the main difference between c and c++?

Answer Posted / rajeev kumar

Actually c is a procedural programming language which
cann't face the real world problem. It has some drawback
like a global data is shared by all function and if in a
large program it is find out difficult that which function
uses which data.

On the other hand c++ is an object oriented programming
language which eliminate some pitfall of conventional or
procedural programming language. It is a concept or
approach for designing a new software. It is nothing to do
with any programming language although a programming
language which support the oops concept to make it easier
to implement.

This is the main different between c and c++.

Is This Answer Correct ?    3762 Yes 477 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the point of oop?

642


Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.

616


i got a backdoor offer in process global,Bangalore..Can i work with it?

2316


is there any choice in opting subjects like 4 out of 7

1723


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).

1634






What is interface in oop?

650


What is class and example?

559


What is static modifier?

623


Why is destructor used?

574


What is abstraction in oops with example?

759


What is an interface in oop?

585


Is data hiding and abstraction same?

561


What does I oop mean?

607


What are the benefits of interface?

569


What is inheritance and how many types of inheritance?

607