0
In which way is c++ Superior to c??
9 Antworten
+ 15
( In the "++".... ^_^ )
+ 4
c + oop = c++
+ 2
It isnt. Both have their advantages and disadvantages. Neither is better than the other in all cases
+ 2
as i wrote in another discussion, c can be considered as a subset of c++. thus if you really know c++, you already learned c. but: if you need to operate on some restricted hardware you have to use the available c there (embedded systems, arm architecture). on these systems there might be no c++ available.
c++ is more like a combination of multiple programming languages or paradigms as already stated by scott Meyers in effective c++ most fundamental. but beside c you need to observe:
- object orientation (c does not know classes)/polymorphism
- templates (c only knows the c preprocessor)
- stl standard template library
- new extensions in c++11/14/17 like lamdas. some people really distinguish between classical C++ and modern C++ wich means C++11 or newer.
+ 2
@Anshul Garg: for linking to Java you can use JNI Java Native Interface and this defines functions in C style. where is the advantage of C++ inthis specific use case? i do not see it at the moment.
+ 1
The inclusion of libraries is a major factor.
+ 1
@Volker
Thank you for sharing!
0
C is part of C++.
I find it strange,
that you ask if one is superior to the other.
0
c++ is based on real world problem concept but not c ... c++ is developed to solved the problems which is faced by c that's why c++ is better than c