yy 发帖数: 45 | 1 int (*a) [10];
What does this a mean in this expression?
Thanks a lot! |
l*********b 发帖数: 8 | 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!
|
yy 发帖数: 45 | 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
|
k****f 发帖数: 3794 | 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.
|
k****f 发帖数: 3794 | 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.
|
N*********y 发帖数: 105 | 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.
|