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

Answer Posted / g.dhanalakshmi

1)C program supports top-down approach, but c++ program
supports bottom up approach.
(Explanation) If we need to compile c/c++ program, the
compiler first goes to main()function, In c++ we start with
class and main() function is at the bottom.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1419


What type of loop is a for loop?

684


Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4248


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

1612


What is class encapsulation?

600






What is difference between polymorphism and inheritance?

619


explain sub-type and sub class? atleast u have differ it into 4 points?

1838


When not to use object oriented programming?

572


What is polymorphism and types?

602


Do you know about multiple inheritance?

643


Is data hiding and abstraction same?

569


What is the real time example of encapsulation?

599


What is the point of polymorphism?

590


What is inheritance in simple words?

627


Why multiple inheritance is not possible?

602