r/C_Programming • • Oct 18 '26

C limitations

Hi all,

I am currently learning c++. Its okay. Not sexy but also not as bad as some say.

The reason I am learning c++ is that I have read that C has limitations as soon as a project gets more complicated. For example, if you make a scientific calculator with many features like graphs etc.

Trading engines/tools are also not recommended to programm in C.

Since I have not learned C and have only read from some old forum posts etc, I cannot confirm/deny these facts.

I am aware that "everything" is possible and that C++ comes with QoL improvements especially with Classes. But I assume that doesn't mean that someone has to use C only for kernel work. Embedded is also possible with C++ right?

I would appreciate your thoughts and opinions.

The goal of this post is to understand how and if C could fit me more with my goals and what real advantages or disadvantages C has.

51 Upvotes

114 comments sorted by

View all comments

50

u/DDDDarky Oct 18 '26

There are no limitations in what you can/can't do in either of these languages, there are certain (dis)advantages, for example with C you get smaller stdlib size, with C++ you get powerful rich language features.

1

u/Classic_Department42 Oct 19 '26

The libaries are limiting. If you want gui, you can use qt or wxwidget, and both require cpp, right? Yes there are prob some c gui libs, but do they compare favourably to qt?

4

u/septum-funk Oct 20 '26

ever heard of GTK? lol

1

u/Classic_Department42 Oct 20 '26

Yes. And does it compare favourably with qt?

3

u/DDDDarky Oct 20 '26 edited Oct 20 '26

I guess that's also a fair point, many complex libraries and frameworks support only C++, although the gui is often a practical joke, especially on linux. And I personally dislike both qt and gtk (that said qt seems way more advanced).

2

u/septum-funk Oct 20 '26

linux is entirely split between gtk and qt so whether you like more it or not it's a popular alternative

1

u/Classic_Department42 Oct 20 '26

And windows? Embedded?

2

u/septum-funk Oct 20 '26

gtk works fine on windows, if you're doing embedded roll your own ui the fuck you doing running qt on a microcontroller lol

1

u/Wertbon1789 Oct 19 '26

C's stdlib is really a bad argument when compared to C++'s, just because C++ already gives you quite a lot, while you need to wrap around C's stdlib to actually use it. Not even talking about the parts of C's stdlib you should never use, or platform specific functions that are way too convenient, but just not available everywhere for whatever reason.

5

u/septum-funk Oct 20 '26

we ALL writing our own strdup