C
C
coder2021-07-16 16:56:45
C++ / C#
coder, 2021-07-16 16:56:45

Why can the C language work with the low-level layer? For what?

I want to understand the structure of the C language. How does he work? Why does it make it possible to work with RAM, while others do not. Thanks in advance

Answer the question

In order to leave comments, you need to log in

5 answer(s)
W
Wataru, 2021-07-16
@RomanSamets

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.

V
Vladimir Korotenko, 2021-07-16
@firedragon

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.

L
LoliDeveloper, 2021-07-16
@LoliDeveloper

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.

V
Vasily Bannikov, 2021-07-16
@vabka

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

C
CityCat4, 2021-07-17
@CityCat4

Everyone can work. It's just that C believes that if you already undertook programming on it, then you know what you need, and other languages ​​\u200b\u200b"just in case" will isolate you from the means of controlling it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question