0

In which way is c++ Superior to c??

1st Jul 2017, 3:56 PM
Nandhini.B.R
Nandhini.B.R - avatar
9 Antworten
+ 15
( In the "++".... ^_^ )
1st Jul 2017, 4:04 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 4
c + oop = c++
1st Jul 2017, 5:43 PM
Toby
Toby - avatar
+ 2
It isnt. Both have their advantages and disadvantages. Neither is better than the other in all cases
1st Jul 2017, 6:02 PM
aklex
aklex - avatar
+ 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.
1st Jul 2017, 9:38 PM
Volker Milbrandt
Volker Milbrandt - avatar
+ 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.
1st Jul 2017, 9:42 PM
Volker Milbrandt
Volker Milbrandt - avatar
+ 1
The inclusion of libraries is a major factor.
1st Jul 2017, 4:06 PM
josh mizzi
josh mizzi - avatar
+ 1
@Volker Thank you for sharing!
1st Jul 2017, 10:38 PM
Manual
Manual - avatar
0
C is part of C++. I find it strange, that you ask if one is superior to the other.
1st Jul 2017, 4:12 PM
Manual
Manual - avatar
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
3rd Jul 2017, 1:18 AM
Sumita
Sumita - avatar