what are difference between c and c++?

Answer Posted / sachin sonawane

1. C follows the procedural programming paradigm while C++ is a multi-paradigm language(procedural as well as object oriented)
2. In case of C, the data is not secured while the data is secured(hidden) in C++
3. C is a low-level language while C++ is a middle-level language (Relatively, Please see the discussion at the end of the post)
4. C uses the top-down approach while C++ uses the bottom-up approach
5. C is function-driven while C++ is object-driven
6. C++ supports function overloading while C does not
7. We can use functions inside structures in C++ but not in C.
8. The NAMESPACE feature in C++ is absent in case of C
9. The standard input & output functions differ in the two languages
10. C++ allows the use of reference variables while C does not

for more information u can contact me on my E-mail ID miswarit@gmail.com

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is static data member similar to a global variable?

586


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

588


What is array in c++ example?

653


What are separators in c++?

627


Why is standard template library used?

586






Explain deep copy and a shallow copy?

616


Which one is better- macro or function?

659


Why do we learn c++?

532


State two differences between C and C++.

611


Difference between pointer to constant vs. Pointer constant

585


What is the last index number in an array of 100 characters a) 100 b) 99 c) 101

592


Are c and c++ different?

543


What is a manipulator in c++?

717


What is data hiding c++?

601


What is c++ prototype?

591