What is the difference between C and C++ language?

0 67 Views | Posted 7 years ago
Asked by mr ganeshnnn

  • 2 Answers

  • P

    Answered by

    Pankajkumar Patro Learn to enjoy learning. | Contributor-Level 7

    7 years ago
    C follows a procedural method of programming (dividing the program into smaller parts known as functions). C+ is an extension of C. It permits object oriented programming (building real life-like objects, defining them and then implementing them in the program). Also, C+ is backwards compatible with C.
  • Shiksha Ask & Answer

    Answered by

    Omkar Majukar

    6 years ago
    Following are some of the differences between C and C+. When compared to C+, C is a subset of C+. All valid C programs are valid C+ programs. C is a structural or procedural programming language, while C+ is an object oriented programming language. In C, Functions are the fundamental building blocks, while in C+, Objects are the fundamental building blocks. C doesn't have variable references, while C+ has variable references. C uses malloc and free for memory allocation while C+ uses new and delete for memory allocation. C does not provide direct support for error handling, while C+ supports exception handling that helps in error detec
    ...more

Get authentic answers from experts, students and alumni that you won't find anywhere else

Sign Up on Shiksha

On Shiksha, get access to

  • 64k Colleges
  • 968 Exams
  • 625k Reviews
  • 1500k Answers

Share Your College Life Experience

Didn't find the answer you were looking for?

Search from Shiksha's 1 lakh+ Topics

or

Ask Current Students, Alumni & our Experts

×

This website uses Cookies and related technologies for the site to function correctly and securely, improve & personalise your browsing experience, analyse traffic, and support our marketing efforts and serve the Core Purpose. By continuing to browse the site, you agree to Privacy Policy and Cookie Policy.

Need guidance on career and education? Ask our experts

Characters 0/140

The Answer must contain atleast 20 characters.

Add more details

Characters 0/300

The Answer must contain atleast 20 characters.

Keep it short & simple. Type complete word. Avoid abusive language. Next

Your Question

Edit

Add relevant tags to get quick responses. Cancel Post