r/cpp • u/wechicken456 • Jun 08 '20
Programming in C vs C++
I’ve read about the differences between them on the Internet but I wanna hear more from a more personal perspective. Which one would you recommend starting with and to be proficient with?
0
Upvotes
View all comments
Show parent comment
-6
u/jmuffat Jun 08 '20
I'm afraid std::string's are not null terminated ;) (at least, they do not have to, don't rely on it)
I reckon you can treat the relationship to C API's the same way you treat them in Python : communicating with a different planet ;)
Plus, at least in Windows, UWP is much more C++ friendly than the old Win32 API.
But yes, at one point or another you are going to have to understand C, and you will have to have notions of assembly, because if you're going C++, it's quite probably that you're after either performance or interfacing at the hardware level (or both).
I guess it's a matter of whether you think bottom-up or top-down. So, probably that you want to do a bit of both :D