Is it possible to make void pointer array ??where each block of array contains different data type | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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