Exforsys
+ Reply to Thread
Results 1 to 5 of 5

what is the difference between c and c++?

This is a discussion on what is the difference between c and c++? within the C and C++ forums, part of the Programming Talk category; what is the difference between c and c++? C++ is object-oriented but C is not...C is a general programming language,C++ ...

  1. #1
    Halbert's Avatar
    Halbert is offline Junior Member Array
    Join Date
    Jan 2011
    Location
    USA
    Answers
    4

    what is the difference between c and c++?

    what is the difference between c and c++?
    C++ is object-oriented but C is not...C is a general programming language,C++ is an Object Oriented variant of C.... in c we use printf and scanf for input and output, in c++ we use cin and cout.......


  2. #2
    techvinny is offline Moderator Array
    Join Date
    Dec 2010
    Answers
    56
    C++ would have most of the advantages of an object oriented model such as data abstraction, encapsulation, reusability - inheritance, etc. which the procedural languages like C lacks...


  3. #3
    shravansofts is offline Junior Member Array
    Join Date
    Jan 2011
    Answers
    1
    in c++ generics templates and overloading concepts are there.


  4. #4
    Nagaraj is offline Junior Member Array
    Join Date
    Feb 2011
    Location
    Bangalore
    Answers
    3
    C is procedural language but c++ object oriented language.
    c does not support virtual functions.
    In case of C, the data is not secured while the data is secured(hidden) in C++.
    C uses the top-down approach while C++ uses the bottom-up approach.
    We can use functions inside structures in C++ but not in C.
    The NAMESPACE feature in C++ is absent in case of C.
    C++ allows the use of reference variables while C does not.
    The standard input & output functions differ in the two languages


  5. #5
    amydecia is offline Junior Member Array
    Join Date
    Feb 2011
    Answers
    1
    c++ is more advanced than c language.
    Actually c is a procedural programming language which
    cann't face the real world problem. It has some drawback
    like a global data is shared by all function and if in a
    large program it is find out difficult that which function
    uses which data.

    On the other hand c++ is an object oriented programming
    language which eliminate some pitfall of conventional or
    procedural programming language. It is a concept or
    approach for designing a new software. It is nothing to do
    with any programming language although a programming
    language which support the oops concept to make it easier
    to implement.

    This is the main different between c and c++.


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...