Memory allocation strategy for struct and union in C programming language
If you are writing program by C programming language, you may need to care about how many memories to allocate, and when you should deallocate them. That is a heavy work for programmers, but at the same time it is very interesting. You will recognize that when defining a
float variable, how many memories we need to allocate? Why a function can modify extern variables by passing the pointer of them?
- 0 Comments