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

Answer Posted / krishnendu dey

1.C doesn't support function overloading but c++ does
2.c++ has a features of NAMESPACE which C doesn't have.
3.In C++ we can use function inside structure whereas C
doesn't permit this.
4 c- function driven
C++- object driven
5. C uses top down approach
C++ uses bottom down aproach

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

1623


What is difference between inheritance and polymorphism?

576


What is polymorphism what is it for and how is it used?

576


What is stream in oop?

842


How to hide the base class functionality in Inheritance?

640






write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory

2765


Why do while loop is used?

579


assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).

1672


What is oops and its features?

592


What is the main purpose of inheritance law?

673


What is polymorphism used for?

577


How to use CMutex, CSemaphore in VC++ MFC

4333


What are two types of polymorphism?

615


What do you mean by Encapsulation?

645


What is oops?what is its use in software engineering?

559