C vs C++ What is different?

23,607
0
Published 2023-05-01

All Comments (17)
  • @Labs51Research
    40 years programming with C and about 35 with C++ .. in my humble opinion, C is the only language you need.
  • @fcolecumberri
    A lot of people think of C++ as C with classes (which was the original idea), however, if I would be asked about the biggest strengths of C++ over C, I would not bother talking about OOP, it is true that for a while OOP was considered the algorithmic silver bullet, however, now a days, it is only used in the places where it is a good solution. I considere that the main reasons to use C++ over C are constexpr (which let you create code that can be solve at compile time) and templates which allow to create meta-programming without void* (here I would include the entire STL and other template libs out there), that if done wrong, compile time errors will appear (instead of run time errors with void*) and can be optimized at compile time.
  • @IgorLisx
    Please do not stop creating new videos. Keep adding wisdom and knowledge to this world!
  • @IgorLisx
    I think it's very possible to replace C with C++ everywhere. If you don't need something, just don't use it in C++.
  • @GmanGavin1
    I don't know, I think the key word here is "discouraged". To me all the coverage in C++ seems like (opinions of how you should write) rather than a required (need to write). I feel like similar videos kind of oversimplify this into facts when a lot of C++ seems optional. Feel free to correct me.
  • I would not say that the "custom" is to use a method like obj.f() instead of f(data), the "custom" is to use whatever makes sense. And a lot of the time, POD with no functionality attached as methods does make sense, and so you'd use a free function. The actual difference is that C doesn't give you a choice, you only have free functions, whereas C++ gives you the choice of using methods or having a POD type that is passed to a free function.
  • @eng.shh80
    You’re partially right, C is not a subset of C++ but C++ is the extension of C.
  • @saltygoose2943
    So, this may be off topic but the career center at my college recommended that I added C to my skills section because a course that we went through does use c++. So the resume the worked on with me says c/c++ which if someone like yourself was looking at my resume would just know is incorrect. I’m literally taking this argument to them on Monday and showing them that the recommendation is probably getting people looked over for jobs.
  • @TheAndiKurz
    C++ is somehow a low level and a high level language at the same time. But C is a subset of c++, because you could just compile c code with the c++ compiler and it would work perfectly fine, this is not recommended, because the c compiler would make some more specific optimizations, but the program should run as intended.
  • @wastedkafir9134
    smart ptrs were there in c++ even before c++11 called auto_ptr
  • @garryalfonso1609
    The video so short... Craving for more info like syntax... Can you make another video about c vs cpp and their syntax difference and similarities? Thanks bruh...❤❤❤
  • @leshommesdupilly
    Me writing c code and calling it cpp just to watch the world burn down
  • @fpn12099
    You totally forget the most important difference.
  • @skigui1
    "C is simple" 😂... c++ harder than c, js harder than rust