E******T 发帖数: 59 | 1 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 yes, * means pointer... so you have totally no idea about C. better grab an
introductory book and read a bit.
【在 E******T 的大作中提到】 : 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
| M**u 发帖数: 10158 | 3 这个tough个啥啊
sizeof (float *) 要存一个指针大小
sizeof (float)要存一个float大小
【在 E******T 的大作中提到】 : 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
|
|