Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Well, this is the design of the language. There are pointers, manual allocation and deletion of memory. This allows you to win in performance. But it also creates a lot of opportunities to shoot yourself in the foot. Other languages have chosen to be slightly slower but more programmer friendly.
Why's that? A bunch of languages work with memory. It's just that in c it is understood that you know what you want and they don't beat you on the hands.
Any languages make it possible to work with the RAM. It's just that it all turns into a convenient pita, with which you don't have to worry that something will run away or won't fit, or another 100,500 problems of manual memory management.
As mentioned above, almost all languages work with RAM, and almost all allow you to work with it directly.
It's just that most languages already have their own memory management system, for example GC, and in C there is neither a garbage collector, nor RAII, nor a borrow checker
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question