Are array of pointers to different types possible in c++? with example please)
#include int main(void) { void * ptr[2]; int *a; int b; ptr[0] = "[0] = \"This is a string & c does it better\", [1] = "; *a = 2; ptr[1] = a; b = *((int *) ptr[1]); printf("%s", (char *) ptr[0] ); printf("%i\n", b ); return 0; }