answersLogoWhite

0

C was the C++ predecessor. As it's name implies, alot of C remains in C++. Although not actually being more powerful than C, C++ allows the programmer to more easily manage and operate with Objects, using an OOP (Object Oriented Programming) concept.

C++ allows the programmer to create classes, which are somewhat similar to C structures. However, to a class can be assigned methods, functions associated to it, of various prototypes, which can access and operate within the class, somewhat like C functions often operate on a supplied handler pointer.

Although it is possible to implement anything which C++ could implement in C, C++ aids to standarize a way in which objects are created and managed, whereas the C programmer who implements the same system has alot of liberty on how to actually implement the internals, and style among programmers will vary alot on the design choices made.

In C, some will prefer the handler-type, where a main function initializes a handler, and that handler can be supplied to other functions of the library as an object to operate on/through. Others will even want to have that handler link all the related function pointers within it which then must be called using a convention closer to C++.

To finish this discussion, C++ applications are generally slower at runtime, and are much slower to compile than C programs. The low-level infrastructure for C++ binary execution is also larger. For these reasons C is always commonly used even if C++ has alot of popularity, and will probably continue to be used in projects where size and speed are primary concerns, and portable code still required (assembly would be unsuitable then).

User Avatar

Wiki User

17y ago

What else can I help you with?

Related Questions

Difference between C and C programming language?

The C and C programming languages are one and the same. There is no difference between those languages.


What is the difference between simulater and c c plus plus etc languages?

A simulator is a computer program which reproduces the behaviour of one system upon another system. Computer languages are used to create computer programs.


What is the difference between CA and C plus plus?

CA is an abbreviation for chartered accountant (Ca is the chemical symbol for calcium, which is an element). C++ is a programming language. If you actually meant what is the difference between C and C++ programming languages, then the main difference is that C++ incorporates object-oriented programming whereas C does not. Otherwise both languages are largely the same, insofar as most C programs will compile under C++ with relatively minor modification.


What is the difference between pointers in c and c plus plus?

Nothing.


What is the different between Compiler and Interpreter in C or C plus plus programming?

It is easy to tell: there is no interpreter for C and C++, they are compiled languages.


Difference between void and devoid in c plus plus?

There is no such thing as devoid in C++.


What is the difference between be plus ing and get plus ing?

There are no such terms in C++.


What is the Difference between arrays in c and c plus plus?

Nothing whatsoever. They are exactly the same.


Is there any difference between turbo c and c plus plus?

turbo c is a compiler and c++ is a programming language.


What is the difference between cc plus plus and c sharp?

C# is inherited from c++ with some additional features


What is the difference of C to C plus plus and Dev C?

C and C++ are both programming languages whereas Dev C++ is an implementation of C/C++. Dev C++ is free, was written in Delphi and includes the MinGW compiler.


What is the difference between c plus plus and java programming?

Java doesn't have pointers. C++ has pointers.