摘要: c中的static变量 static变量分配在内存中的数据段,函数内部声明的static变量在函数调用结束时,依然保持在内存中, 静态变量只能被const类型的变量初始化,例如下面的函数会出错 include int initializer(void) { return 50; } int main 阅读全文
posted @ 2017-09-12 12:00 gexin1023 阅读(186) 评论(0) 推荐(0) 编辑