由买买提看人间百态

topics

全部话题 - 话题: tougth
(共0页)
E******T
发帖数: 59
1
来自主题: Programming版 - another tougth pointer example
float **x;
x = (float **)malloc(k*sizeof(float *)); /* Make space for the data */
in this example, sizeof(float *) and sizeof(float) has any difference? the
denotation * means a pointer?
Thanks
t****t
发帖数: 6806
2
来自主题: Programming版 - another tougth pointer example
yes, * means pointer... so you have totally no idea about C. better grab an
introductory book and read a bit.
M**u
发帖数: 10158
3
来自主题: Programming版 - another tougth pointer example
这个tough个啥啊
sizeof (float *) 要存一个指针大小
sizeof (float)要存一个float大小
(共0页)