I tried doing this in C and it crashes:
int nValue=1;
void* asd;
asd[0]=&nValue;
With the following error:
*error C2036: 'void**' *: unknown size
error C2100: illegal indirection*
Can I use a void pointer in C as an array?
And if I can, what is the correct way to do so?
void *cannot be dereferenced but it can be converted between any pointer type. That being said, you never even initializeasdhere...void* asd[5];