what is the main difference between c and c++?
Answer Posted / kakkar & kainth
=> c is procedural as well as structured language while c++
is procedural and object oriented.
=> c++ is an extension of c.
=> various i/o functions in c++ are performed using
iostream.h while in c it is done through stdio.h.
=>instead of scanf,cin>> is used in c++ and instead of
printf, cout<< is used in c++.
=>c is top down approach while c++ is bottom up approach.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What do you mean by abstraction?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
How to call a non virtual function in the derived class by using base class pointer
Is abstract thinking intelligence?
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...
any one please tell me the purpose of operator overloading
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
What exactly is polymorphism?
What is protected in oop?
What does oop mean in snapchat?
What are the important components of cohesion?
What is polymorphism used for?
What do you mean by Encapsulation?
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
What are the three main types of variables?