advantages and disadvantages in c

This is a discussion on advantages and disadvantages in c within the C Programming forums, part of the General Programming Boards category; can u tell me the advantages and disadvantages in c. why we go for c++. thank u, sree...

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    90

    advantages and disadvantages in c

    can u tell me the advantages and disadvantages in c.
    why we go for c++.
    thank u,
    sree
    Last edited by cnu_sree; 11-06-2007 at 06:59 AM.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Can you rephraze that question in english, please [like, use whole words, and correct syntax]?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    Advantages: C is the right tool for the job.
    Disadvantages: C isn't the right tool for the job.
    My best code is written with the delete key.

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Whatever you can do in C can be done in C++.

    C++ has "object orientation" built into the language, although in essence that's simply a help, rather than a must for object oriented programming. It comes down to "how you approach a problem" rather than language - you can write non-object oriented code in C++, and you can write object oriented code in C. Of course, using C++ to write object oriented code offers a little bit more help from the language itself, particularly in the form of class inheritance and such things.

    The real question is: What are you trying to achieve, and what language is best to achieve that goal under the current situation.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  5. #5
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    I think programmers could use all the help they can get; and C++ gives them that help. In general, C++ code is safer, smaller (to read at least), and more programmer friendly.

    Other than non-traditional computers like cell phones, PDAs, and other things without a keyboard & monitor, is there any platform these days that have a C compiler but no C++ compiler?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Localization questions
    By X PaYnE X in forum C++ Programming
    Replies: 8
    Last Post: 08-23-2006, 05:49 PM
  2. Clearing the screen
    By tgm in forum C++ Programming
    Replies: 30
    Last Post: 09-25-2002, 08:02 PM
  3. clearing the screen
    By brad123 in forum C Programming
    Replies: 12
    Last Post: 05-02-2002, 01:44 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21