+ 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

18th Dec 2020, 4:11 AM
Vishal Jadhav
Vishal Jadhav - avatar
5 Answers
+ 1
You can't declare an array of void.
18th Dec 2020, 4:14 AM
你知道規則,我也是
你知道規則,我也是 - avatar
+ 1
are you sure? CarrieForle
18th Dec 2020, 6:39 AM
Flash
18th Dec 2020, 7:03 AM
你知道規則,我也是
你知道規則,我也是 - avatar
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
18th Dec 2020, 7:34 AM
Flash
0
Flash array of void type was the first thing come to my mind when I saw this question.
18th Dec 2020, 8:13 AM
你知道規則,我也是
你知道規則,我也是 - avatar