怀疑静态变量 [英] doubt in static variables
本文介绍了怀疑静态变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
i am jeysree.i有疑问。
请看下面的两个片段。它没有显示任何错误
展开 | 选择 | Wrap | 行号
解决方案
以下是使用CODE标记的摘要的简化版本:
展开 | Sel ect | Wrap | 行号
@donbock
先生,
感谢您的回复。我只是想知道在本地和全球宣布的静态变量的内存分配时间和地点?
我也想知道什么时候除了静态以外,其他全局变量的内存分配在哪里?
这有助于我更好地理解。
@donbock
先生,
感谢您的回复。我只是想知道记忆的时间和地点全部是否为本地和全局声明的静态变量oc?
我还想知道除静态以外的其他全局变量分配的内存的时间和地点?
这有助于我理解更好。
hello,
i am jeysree.i have a doubt.
please look at the following two snippets.it doesnt shows any error
Expand|Select|Wrap|Line Numbers解决方案Here is a simplified version of your snippets using CODE tags:
Expand|Select|Wrap|Line Numbers
@donbock
sir,
thanks for your reply.i just want to know when and where is memory allocated for static variables declared locally and globally?
also i wish to know when and where is memory allocated for other global variables other than static?
this would help me to understand better.
@donbock
sir,
thanks for your reply.i just want to know when and where is memory allocated for static variables declared locally and globally?
also i wish to know when and where is memory allocated for other global variables other than static?
this would help me to understand better.
这篇关于怀疑静态变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文登录 关闭
扫码关注1秒登录发送“验证码”获取 | 15天全站免登陆