avatar
what does this mean?# Programming - 葵花宝典
yy
1
int (*a) [10];
What does this a mean in this expression?
Thanks a lot!
avatar
l*b
2
a pointer that points to an array of 10 integers

【在 yy 的大作中提到】
: int (*a) [10];
: What does this a mean in this expression?
: Thanks a lot!

avatar
yy
3
Thanks, just wondeing why it is initilized default by compiler
to some address such as:
0xbfade888
while int *ptr; will initialize ptr to 0?
Thanks again.

【在 l*********b 的大作中提到】
: a pointer that points to an array of 10 integers
avatar
k*f
4

~~~~~~~~~~~~~~~~~~~~NO

【在 yy 的大作中提到】
: Thanks, just wondeing why it is initilized default by compiler
: to some address such as:
: 0xbfade888
: while int *ptr; will initialize ptr to 0?
: Thanks again.

avatar
k*f
5
用中文吧。别用英文,看得费劲

【在 yy 的大作中提到】
: Thanks, just wondeing why it is initilized default by compiler
: to some address such as:
: 0xbfade888
: while int *ptr; will initialize ptr to 0?
: Thanks again.

avatar
N*y
6
I think that's just UNINITIALIZED MEMORY. For good coding style, you should
initialize your pointer.

【在 yy 的大作中提到】
: Thanks, just wondeing why it is initilized default by compiler
: to some address such as:
: 0xbfade888
: while int *ptr; will initialize ptr to 0?
: Thanks again.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。