摘要: 分析C语言static关键字的作用 目录分析C语言static关键字的作用1.静态存储期(局部变量使用static时)2.静态全局变量3.static与函数一起使用 先来看一个案例 #include <stdio.h> int a=5; void show_val(void) { int b=3; 阅读全文
posted @ 2024-06-17 23:13 北极甜虾哟 阅读(15) 评论(0) 推荐(0) 编辑