r/C_Programming • u/Ok_Reserve996 • 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.
View all comments
Show parent comment
1
u/flatfinger Oct 19 '26
Many commercial C implementations intended for low-level programming are designed around the idea that actions which are not defined by the language will be processed in a manner characteristic of the environment, which will be documented if the environment happens to document it. The C Standard acknowledges this idea when it suggests that actions where it waives jurisdictions may be treated "in a documented manner characteristic of the environment", but fails to recognize an important aspect: implementations will often have no way of knowing which corner cases will and are will not be documented by the environment. Many people seem to think the Standard uses the term "implementation-defined behavior" for actions that many implementations should be expected to process in a manner characteristic of the environment, but that category is limited to actions that all implementations are required to define and document.
On many platforms, the only thing a programmer would need to do that isn't accommodated by standard C syntax would be to force a particular function or object to be placed at a particular address. While non-standard syntax may make some actions more convenient than they would otherwise be, and on some platforms the use of non-standard syntax might be unavoidable, many commercial compilers can do everything that needs to be done--with the one exception noted above--without any toolset-specific syntax.
Unfortunately, the C Standard has yet to recognize a distinction between implementations that behave in a manner consistent with commercial low-level C implementations, and those that treat the Standard's failure to mandate a corner case behavior as implying that the corner case isn't part of "real" C.