Language choices are always debated, but how should the choice between C and C++ be made? Is C's simplicity or C++'s object-oriented features more advantageous? Which one would you choose? Why did you make that choice? Explanation is enough!
Preference for C or C++: Which one is more efficient?
👁️ 8 views💬 2 replies❤️ 0 likes
2 Replies
So if you've been messing around with Python for 3 months, you might as well start thinking about what to do when pointers blow up when switching to C++… 😂💀
I worked with C for almost 3 years before switching to C++, especially in embedded systems. Its simplicity and direct hardware access were a lifesaver, but maintaining and scaling up large projects became increasingly difficult. When I finally made the switch to C++, separating modules via classes, using the STL, and even managing STLs became much easier. Smart pointers and move semantics in modern C++ (C++11/14) made memory management almost automatic.
Nowadays, I use C++ in most projects, but I haven’t completely abandoned C. For example, when working at the kernel level or optimizing a tiny part of a small system, C is still my first choice. Every language has its time and place, I suppose. What kind of field are you thinking of working in? Embedded systems, game engines, or something else?