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

Thread: C Vs C++

  1. #1
    Join Date
    Feb 2012
    Location
    Fremont,CA
    Posts
    36

    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++?
    Make sure you check out my >>Facebook Development Blog and Website<<

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,288

    Re: C Vs C++

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

  3. #3
    Join Date
    Sep 2000
    Location
    Indianapolis
    Posts
    6,421

    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.

    Brad!
    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, CodeGuru.com Site Director
    Developer.com Network Director / EiC

    webmaster@codeguru.com
    (My Latest Book)


    -----------------------------------------------

  4. #4
    Join Date
    Jul 2013
    Posts
    213

    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center