Hello and welcome to our community! Is this your first visit?
Register

Results 1 to 7 of 7
  1. #1
    Junior Member Array
    Join Date
    May 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post What are big differences between C and C++

    I'm new to programming though I know well about C. I don't know enough about C++.Can anybody explain what are the big points that makes them different?

  2. #2
    WTF Master Array
    Join Date
    Nov 2009
    Posts
    1,901
    Thanks
    105
    Thanked 52 Times in 39 Posts


    There are a lot of differences. C++ is an improvement on C so it is a new version of C and should be used.

    Here are some differences between c and C++
    Implicit Assignment from void*

    Freeing arrays: new[] and delete[]

    You must declare functions before use

    C++ has a much larger library

    main Doesn't Provide return 0 Automatically

    C follows the procedural programming paradigm while C++ is a multi-paradigmlanguage(procedural as well as object oriented)

    In case of C, the data is not secured while the data is secured(hidden) in C++

    C is a low-level language while C++ is a middle-level language

    C uses the top-down approach while C++ uses the bottom-up approach

    C is function-driven while C++ is object-driven

    C++ supports function overloading while C does not

  3. #3
    WTF Groupie Array
    Join Date
    May 2011
    Location
    India
    Posts
    109
    Thanks
    1
    Thanked 0 Times in 0 Posts


    To be basic, C++ is a higher-level version of C, more modern, flexible and powerful.C++ is purely OOPS based Language.
    it is depends upon where you can use. In Embedded system C is my choice.In case of games and software means C++ is better way.

  4. #4
    WTF Lurker Array
    Join Date
    May 2011
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts


    C++ is Objecte Oriented Programming language while C is structural programming language
    Thanks
    http://www.msdnguide.info/

  5. #5
    WTF Groupie Array
    Join Date
    May 2011
    Location
    India
    Posts
    109
    Thanks
    1
    Thanked 0 Times in 0 Posts


    C++ grew out of C, as it was designed to be source-and-link compatible with C.

    Likewise, C++ introduces many features that are not available in C.The main difference between C and C++ is that C++ is object oriented while C is function or procedure oriented. Object oriented programming paradigm is focused on writing programs that are more readable and maintainable.

    On the other hand, functional and procedural programming focus primarily on the actions and events, and the programming model focuses on the logical assertions that trigger execution of program code.

  6. #6
    WTF Lurker Array
    Join Date
    Aug 2011
    Posts
    50
    Thanks
    0
    Thanked 0 Times in 0 Posts


    C++ is a direct descendant of C that retains almost all of C as a subset. C++ provides stronger type checking than C and directly supports a wider range of programming styles than C. C++ is "a better C" in the sense that it supports the styles of programming done using C with better type checking and more notational support (without loss of efficiency). In the same sense, ANSI C is a better C than K&R C. In addition, C++ supports data abstraction, object-oriented programming, and generic programming

  7. #7
    WTF Lurker Array
    Join Date
    Aug 2011
    Posts
    87
    Thanks
    3
    Thanked 1 Time in 1 Post


    just difference in syntax other wise its similer work


 

Tags for this Thread

Bookmarks

Posting Permissions

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