Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: What's the difference between C and C++???

  1. #1
    Join Date
    Jul 2006
    Posts
    249
    Rep Power
    0

    Default What's the difference between C and C++???

    curious.. and asking... and please dont respond saying ask google.. i'm asking you guys for a reason...
    "And what's the real lesson? Don't leave things in the fridge"

  2. #2
    Join Date
    Feb 2006
    Posts
    4,242
    Rep Power
    0

    Default

    C++ is coded from a object oriented approach.
    |--- www.RealJamaicaEstate.com ™ ---|
    Invest small = small returns [micro enterprise] | Invest Big = returns Big [macro enterprise]
    --- www.fashionsJAMAICA.com ™ -|- www.ChampsJamaica.com

  3. #3
    Join Date
    Nov 2004
    Posts
    4,918
    Rep Power
    24

    Default

    I think he needs a simpler definition than that.

    Something like C contains a few libraries and is not as simple to code with like c++ which has classes that should make repeating codes in the program easier, etc.
    Current Android - OnePlus 7T Pro
    PC Specs - Motherboard: Asus PRIME B560-PLUS | Processor: Intel Core i5-11600K (stock) | Memory: 32 gigs Corsair Vengeance DDR4@3200mhz | Video Card: ASUS ROG Strix GeForce RTX 4070 (OC Edition) | Monitor: ASUS TUF Gaming 27" 2K Monitor | Steam ID -> Powpow

  4. #4
    Join Date
    Jul 2006
    Posts
    276
    Rep Power
    0

    Default

    basically c++ takes on a object oriented approach and c a procedural
    The greatest discovery of all men through lifetime is that a man can alter his life by altering his attitude!

  5. #5
    Join Date
    Dec 2006
    Posts
    433
    Rep Power
    0

    Default

    Basically you have C which is better for writing functions to support real programs, it's those programs that execute in the background every moment your machine is on but you just don't know it.

    C++ can do everything C can plus much more with cool new libraries and functionality. With these additions, it's much easier to write real programs - the ones that accept commands, data, etc. from users and perform some action/ provides a result. For eg, bitcomet (a free torrent program) is written in C++. You tell it what torrents you want to download and it carries it out to the end.
    So I Heard You Liek Mudkipz?

  6. #6
    Join Date
    May 2005
    Posts
    10
    Rep Power
    0

    Default

    c was before c++. the name c++ is programming speak for "c + 1" - hence an upgrade in the "paradigm" or approach if you will. c programs are built around the idea of passing data to functions and returning processed data from those functions. this is procedural programming. c++ has those same features as well as a new idea of object oriented programming - where the data and the functions are more closely tied together so it makes it easier to write really complex programs in a more natural way.
    xyoni forever

  7. #7
    Join Date
    May 2003
    Posts
    229
    Rep Power
    0

    Default

    What kind of question is that? There are many differences between C and C++, do you want a list of all the differences?

  8. #8
    Join Date
    Jan 2005
    Posts
    246
    Rep Power
    0

    Default

    Quote Originally Posted by Powpow View Post
    I think he needs a simpler definition than that.
    one have 1 character and the other one have 3 characters.

  9. #9
    Join Date
    Dec 2004
    Posts
    1,181
    Rep Power
    0

    Default

    1. Syntax varies slightly
    2. C++ use a object oriented approach, thereby promoting code reuse and less coding
    3. C has faster execution times than C++.

    The fact that you can include C code in a C++ project without changing anything illustrates the nature of the languages. In order words C and C++ are the same. The only difference is that one has a richer library of code and applys more modern programming paradigms.
    'If we're supposed to work in Hex, why have we only got A fingers?'

    Follow Me: @psybuck2002us

  10. #10
    Join Date
    Sep 2006
    Posts
    2,528
    Rep Power
    0

    Default

    Quote Originally Posted by psybuck2002us View Post
    1. Syntax varies slightly
    2. C++ use a object oriented approach, thereby promoting code reuse and less coding
    3. C has faster execution times than C++.

    The fact that you can include C code in a C++ project without changing anything illustrates the nature of the languages. In order words C and C++ are the same. The only difference is that one has a richer library of code and applys more modern programming paradigms.
    well this sounds reasonable
    Confucius say..Man who fight with wife all day, get no piece at night!
    Quote Originally Posted by Gillion View Post
    Your task as member of the elite is to educate, no matter how hard it is.
    No one can do all their own homework all the time. That is why people communicate and collaborate on forums.

Posting Permissions

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