CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 4 of 4

Thread: C Vs C++

  1. #1
    Join Date
    Feb 2012

    C Vs C++

    I am working on Php, so I do not now know much about C or C++

    What are the advantages of using C over C++?

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Hanover Germany

    Re: C Vs C++

    IMHO, only if your compiler cannot compile C++ code.
    Victor Nijegorodov

  3. #3
    Join Date
    Sep 2000

    Re: C Vs C++

    If you are doing standard programming, then you are likely going to want to use C++ instead of C. C++ is object oriented and thus a bit more modern than C. C is not object oriented. C is often used in education (to learn programming) as well as used in embedded programming.

    Shameless plug: My book just had a new edition release on C programming: Teach Yourself C in an Hour a Day is the latest edition. You'll find it on Amazon! You can also find a C++ book under the same series, which is most recently updated by a CodeGuru member as well.
    Brad! Jones,
    Yowza Publishing
    LotsOfSoftware, LLC


  4. #4
    Join Date
    Jul 2013

    Re: C Vs C++

    Quote Originally Posted by kevin619 View Post
    What are the advantages of using C over C++?
    There's just one advantage of C over C++ and that's portability. If only one high level language is supported on a computer system then that language is C. And if many languages are supported then one of them is C. C is truely everywhere.

    So would I recommend C?

    No. C++ is an extension of C and this extension outweights by far the extreme portability of C which you most likely won't need. It's the extension that makes C++ a modern language in league with Java and C#. And C++ is very portable too.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width