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 encapsulation oop?

578


What is destructor give example?

608


Why is it so that we can have virtual constructors but we cannot have virtual destructors?

3848


Why do pointers exist?

665


write a program to find 2^n+1 ?

1555






What are the benefits of interface?

583


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.

635


Why is oop better than procedural?

606


What is inheritance write a program to show use of inheritance?

617


What is constructor overloading in oop?

607


which feature are not hold visual basic of oop?

1725


Why oops is important?

616


What is the purpose of enum?

585


What does oop mean in snapchat?

688


can inline function declare in private part of class?

3662