Jump to content

Please differentiate C and C++

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
Patrick

Patrick

    Programmer

  • Members
  • PipPipPipPip
  • 101 posts
Please explain me the basic difference between C and C++. Is C++ really a better language than C. As far as i know there is only difference in the syntax that is used. Please clear my doubts. Thank you in advance to everyone

#2
kkelly

kkelly

    Learning Programmer

  • Members
  • PipPipPip
  • 49 posts
C has been around since the early 70's. It was designed to run the Unix operating system. It is about as close to assembly language as you can get without using assembly.
C++ was designed to fill the need for code-reusability, necessary for large scale software development. It introduced Classes and Object Oriented Programming. It can do anything C can do.
So essentially, C is small and fast, and C++ is modular and scalable. Also, it is worth mentioning that C++ is still evolving.

#3
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
When comparing languages, "better" is a meaningless comparison. The question is "better for what?" C++ supports programming paradigms that C does not. In that sense, C++ is better. C++ is a more complicated language than C. In that sense, C is better.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#4
Victor

Victor

    Programmer

  • Members
  • PipPipPipPip
  • 116 posts
Also, not mentioned before (possibly implied) but worth noting, C++ was made as an enhancement to C "C with classes".