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

Answer Posted / javed farooque

c is a procedural /structured and modular language in which
program can broken into smaller parts.c++ is based on
object oriented & c++ is a support of c. so we can say
c++ = c + object oriented.

Here, ++ is the increment opertaor it is increment by 1.
c++ is the superset of c.

c does not support reusability of code and data hiding
concepts.

c++ support reuseability of code and use for data hiding.

copy right @2009
All right reserved Affiliated by govt of M.P

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we create object of abstract class?

579


What is object in oops?

615


What is pointer in oop?

541


hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.

1543


2. Give the different notations for the class.\

1594






what is the sylabus for priliminaries?

1691


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.

632


Can a destructor be called directly?

607


What is new keyword in oops?

593


How to use CMutex, CSemaphore in VC++ MFC

4333


write a program that takes input in digits and display the result in words from 1 to 1000

1991


Describe these concepts: Polymorphism, Inheritance and Abstraction.

616


What is the renewal class?

2171


What is encapsulation selenium?

554


What is abstraction in oops with example?

778