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

Answer Posted / annie

1)C is procedure oriented language whereas c++ is object
oriented language.
2)C uses top down approach whereas c++ uses bottom up approach.
3)We can declare variables in the body of main() at the
beginning whereas we can declare variables anytime in c++
when we want to use them.
4)There is no concept of operator overloading in c whereas
there is a concept of operator overloading in c++.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is protected in oop?

788


How do you use inheritance in unity?

785


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

1871


Why is encapsulation used?

743


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

4457


what are the different types of qualifier in java?

2004


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...

1805


What is encapsulation with real life example?

765


What are classes oop?

778


What does and I oop mean in text?

830


Get me an image implementation program.

1714


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1595


Which language is pure oop?

732


write string class as your own class in java without using any built-in function

2183


What is constructor in oop?

797