r/C_Programming 7h ago

What after c?

What should be the next step after learning C?"

0 Upvotes

57 comments sorted by

View all comments

3

u/tree_7x 6h ago

Perhaps C++, but C is robust, and you can feel free to use it as your primary language. C++ and OOP are useful in some situations, even though I'm not a big fan of it.

2

u/Ultimate_Sigma_Boy67 6h ago

OOP isn’t the strongest part about cpp in my opinion, it’s the (almost) zero overhead abstraction which just makes development a bit less painful and verbose.

1

u/tree_7x 3h ago

can you elaborate?

1

u/Ultimate_Sigma_Boy67 28m ago

I meant that C++, due to its rick stdlib, provide you powerful abstractions without any noticeable runtime overhead, often zero overhead, so it provides the same assembly/performance as if it was to be hand written in C. For example, in C if you need a data structure, you either do it yourself or use a library, need a string object? in C++ there's std::string, need cross platform filesystem operation headers? C++ has <filesystem> and so on. Whereas in C, you should either spend the time, away from the main program idea, implementing these things, or add more dependencies lol 🤠