声明数组的关键字static有什么不同的添加 [英] What is the different add in keyword static to declare array

查看:121
本文介绍了声明数组的关键字static有什么不同的添加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在数组声明中看到了人们的代码。



I saw people's code on array declaration.

static unsigned int buffer[MAX+1];







在这种情况下,数组声明的静态意味着什么?

谢谢。




What does the static mean in this case for declaration of array?
Thanks.

推荐答案

取决于您放置声明的位置; static 有几种用途。

见这里: http://msdn.microsoft.com/en-us/library/s1sb61xd.aspx [ ^ ]
Depends where you put the declaration; static has several uses.
See here: http://msdn.microsoft.com/en-us/library/s1sb61xd.aspx[^]


这篇关于声明数组的关键字static有什么不同的添加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆