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

Show parent comment

1

u/flatfinger Oct 19 '26

I would expect a low-level compiler to process actions which access objects through a pointer to be processed as imperatives telling the execution environment to perform the indicated accesses to the indicated addresses in a manner that was generally agnostic with regard to how the execution environment would respond. The compiler should generally neither know nor care about what information the programmer might have about the environment.

1

u/Retropolis_1950 Oct 19 '26

Your responses delve into the philosophical without clarifying your original assessment re: corner-cases. When you say "I would expect" it implies you haven't investigated the behavior of your chosen tools. To digress, I have looked at the code produced to see how the optimizer deals with a coding style and sometimes rewritten code to get a cleaner output. That said, modern tools are so good that is almost never needed but there are still coding paradigms that will produce better outcomes.

1

u/flatfinger Oct 19 '26

Some compilers require the use of toolset-specific syntax to achieve such semantics. Some compilers are not intended to be suitable for low-level programming tasks. If an implementation claims to be suitable for low-level programming tasks without documenting anything special a programmer must do to achieve the necessary semantics, I would treat those facts together as implying either that the implementation will support such semantics by default, or that it is lying about being suitable for low-level programming.