Concept of void pointer in C programming
问题 Is it possible to dereference a void pointer without type-casting in the C programming language? Also, is there any way of generalizing a function which can receive a pointer and store it in a void pointer and by using that void pointer, can we make a generalized function? for e.g.: void abc(void *a, int b) { if(b==1) printf(\"%d\",*(int*)a); // If integer pointer is received else if(b==2) printf(\"%c\",*(char*)a); // If character pointer is received else if(b==3) printf(\"%f\",*(float*)a); /