void *:万能指针
实例
#include <string.h> #include <stdio.h> int main () { void * p; int a = 10; p = &a; printf("%d\n", *((int *)p)); return(0); }
#include <string.h> #include <stdio.h> int main () { void * p; int a = 10; p = &a; printf("%d\n", *((int *)p)); return(0); }