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

Answer Posted / akrita agarwal

Operator and function overloading
Operator and function overloading is not supported by C. If a function has a name, then that function can't use in the program again. But using C++, that is possible. You can use the same function name with different arguments.

Char string limit
C can only recognizes first 32 char of string. But C++ doesn't pose this type of limitation.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }

1991


What is advantage of inheritance?

692


What is oops and why we use oops?

573


What does no cap mean?

592


What is encapsulation with real life example?

572






Is enum a class?

607


Describe these concepts: Polymorphism, Inheritance and Abstraction.

616


Why oops is important?

616


If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?

944


What language is oop?

597


Why do we use oops?

594


How do you explain polymorphism?

596


How do you define a class in oop?

629


What are main features of oop?

637


Why do we use oop?

606