如何從void*
投退?如何退回到多維?
int *a[13][12];
void *b
int *c[13][12];
b = (void*) a;
c = (?????) b;
這
c = (int *[13][12])b;
說:cast specifies array type
這
c = (int *[][])b;
說:array type has incomplete element type
。
Compiler是gcc (Ubuntu/Linaro 4.6.1)
'INT ***'也許? – cegfault
c是一個不是指針的數組。如果你聲明c爲int *** c,那麼正常的強制轉換就可以工作。 – Arjor
@cegfault:給出錯誤:「數組類型」int * [13] [12]'不可分配' – Douglas