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
What is polymorphism and example?
What is overloading in oop?
What is the benefit of oop?
to find out the minimum of two integer number of two different classes using friend function
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< What does <> mean pseudocode? What is encapsulation in oops? What does and I oop mean in text? What is protected in oop? What is interface? When and where is it used? What is encapsulation with example? INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE
METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN
A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS? What is persistence in oop? String = "C++ is an object oriented programming language.An
imp feature of oops is classes and objects".Write a pgm to
count the repeated words from this scenario? what's the basic's in dot net