对于以下场景,如何a通过指针获取数组的大小(3)c?解决这类问题的模式是什么?
struct struct_point {
int x;
int y;
int z;
};
typedef struct struct_point point;
int test_void_pointer () {
point a[3] = {{1, 1, 1}, {2, 2, 2}};
void * b;
point * c;
b = a;
c = b;
/* get_size_p (c) */
}
Run Code Online (Sandbox Code Playgroud)