I'm trying to have a void array with 3 pointers:
char v1='c';
int v2 =12;
int const numOfArgs=3;
char v3[3] = "geo";
void *arg1 = &v1;
void *arg2 = &v2;
void *arg3 = &v3;
void *ptrs[numOfArgs]= {arg1,arg2,arg3};
I tried in several ways to use one of the pointers from ptrs, including casting ,but nothing worked.
How should I approach to it?