+ 1
Is it possible to make void pointer array ??where each block of array contains different data type
void *p, and p contains array, where each arr[0], [1],... contains different datatype
6 Réponses
+ 1
You can't declare an array of void.
+ 1
are you sure? CarrieForle
0
Flash the compiler said so.
https://code.sololearn.com/ci8M4RT2AE7m/?ref=app
0
okay, void is not even a data type. so, it is not possible. the question was about void pointer, so i thought you meant that you can’t have array of void poiner; which is possible. CarrieForle
0
Flash array of void type was the first thing come to my mind when I saw this question.