C 基础 - 存储类链接与内存管理

Posted David

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了C 基础 - 存储类链接与内存管理相关的知识,希望对你有一定的参考价值。

 

 

存储种类

C语言提供几种存储方法,来存放在内存中的值。

 

基本概念: 作用域, 链接, 存储周期

 

五种存储类型:

automatic

register

static with external linkage

static with interanl linkage

static with no linkage

 

 

分配内存 malloc() 与 free()

 

以上是关于C 基础 - 存储类链接与内存管理的主要内容,如果未能解决你的问题,请参考以下文章