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

Answer Posted / krishnachaitanya

c is a structured programming language and procedure
oriented language.c++ is an object oriented programming
language.c does not provide any security to data but c++
provides security to data.c does not have any uniformity
and associativity.in c,we use variables and in c++,we use
objects.c follows top_down approach and c++ follows
bottom_up approach.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction

1652


Can static class have constructor?

582


Can abstract class have normal methods?

610


What is encapsulation selenium?

552


Why do we need oop?

661






• What are the desirable attributes for memory managment?

1725


What is debug class?what is trace class? What differences are between them? With examples.

1604


What is the importance of oop?

605


What is a superclass in oop?

665


to find out the minimum of two integer number of two different classes using friend function

1637


What is overloading in oops?

596


What do you mean by abstraction?

609


Why do we use polymorphism in oops?

575


Get me an image implementation program.

1557


How to call a non virtual function in the derived class by using base class pointer

5253