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 is #include cstdlib in c++?

660


What is an operator function? Describe the function of an operator function?

616


Does c++ have string data type?

691


What is flag in computer?

607


Write a short code using c++ to print out all odd number from 1 to 100 using a for loop

588






How can I learn c++ easily?

624


What is public, protected, private in c++?

657


What is recursion?

659


Implement stack operations with pointers with appropriate exception checks.

567


Write a recursive program to calculate factorial in c++.

611


Can we use struct in c++?

595


Can you explicitly call a destructor on a local variable?

602


If dog is a friend of boy, is boy a friend of dog?

574


Where Malloc(), Calloc(), and realloc() does get memory?

611


What will the line of code below print out and why?

328