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

Answer Posted / jaimin patel

Topic for c:-
1.c is the top down approch.
2.c is the procedure oriented programming language.
3.in c we use as input funtion printf & scanf.
4.c dose not have a class and object.
5.in c we can not overload the function and operatore.

TOPIC FOR C++:-
1.C++ is the bottom to up approch language.
2.c++ is object oriented language.
3.in c++ we use as input function c0ut<< & cin>>.
4.c++ have a class and object.
5.in c++ we can overload a function and object.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you achieve runtime polymorphism?

575


what is different between oops and c++

2010


What is difference between oop and pop?

627


What does and I oop mean?

626


What is polymorphism give a real life example?

572






What are the components of marker interface?

614


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

1847


What is object in oop with example?

717


What does and I oop and sksksk mean?

664


Explain virtual inheritance?

694


What is for loop and its syntax?

608


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1706


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

1845


What is a superclass in oop?

680


What is balance factor?

598