Static variables in c programming

来源:互联网 发布:淘宝网儿童背心 编辑:程序博客网 时间:2024/06/03 15:05

Static variable defines the scope of the variable.


it has mainly two uses


1)Generally extern variable are made static so that function that are not in the file can not access it and function with in the file can access it.


2)Its scope remains till the end of the program

原创粉丝点击