Hey can anyone of you tell me...whether c++ is almost same as c or there are some more difficult concepts in it? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hey can anyone of you tell me...whether c++ is almost same as c or there are some more difficult concepts in it?

c++ or c?

11th Sep 2017, 12:33 PM
Prerna Tyagi
Prerna Tyagi - avatar
3 Answers
+ 5
hi @Prerna 🙋c++ is a updated version of c langauage in some way c++ is same as C but C++ has some concepts which are not in C and C++ has object oriented programing in which many concepts like inheritance encapsulation abstraction and class etc. are present which help you to improve your skills of programming in similarities c and c++ both have pointers structures and all operators are same except syntax
11th Sep 2017, 12:41 PM
MsJ
MsJ - avatar
0
much more difficult concepts in it, some r like run time polymorphism, constructors with derived classes and pointers in inheritance, object embeddings and many more. But once you know these things life will be much easier than a C programmer
11th Sep 2017, 12:37 PM
Morpheus
Morpheus - avatar
- 1
And yes watever you learned in c, will already be there in C++, plus more that's y it's called C plus plus. Remember C++ is the superset of C
11th Sep 2017, 12:39 PM
Morpheus
Morpheus - avatar