difference between c and c++?

Answer Posted / arpit gupta

1.C follows procedural programming language while c++ follows multi paradigm language(procedural as well as object oriented)
2.in c data is not secured,but in c++ data is secured(hidden)like data hiding which is not in c.
3.c is a low level language & c++ is a high level language
4.c is a top down approach but c++ is a bottom up approach
5.We can use functions inside structures in C++ but not in C.
6.C is function-driven while C++ is object-driven
7.C++ supports function overloading while C does not
8.C++ allows the use of reference variables while C does not

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are register variables?

649


What is the use of endl?

550


What is meant by forward referencing and when should it be used?

560


Is c++ the hardest programming language?

643


Comment on local and global scope of a variable.

586






what are Operators and explain with an example?

711


Explain polymorphism?

586


write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;

1517


How do I exit turbo c++?

587


What is lambda in c++?

582


Why should we use null or zero in a program?

606


What is prototype in c++ with example?

566


Explain "const" reference arguments in function?

615


What are pointers used for c++?

573


When one must use recursion function? Mention what happens when recursion functions are declared inline?

653