#include<stdlib.h>intmain(){int a =7;float b =7.6;void*p;
p =&a;printf("Integer variable is = %d",*((int*) p));
p =&b;printf("\nFloat variable is = %f",*((float*) p));return0;}
Void* C 使用void* 可以作为任何类型的转型,同样,也可以将其转为任何的类型#include<stdlib.h>int main() { int a = 7; float b = 7.6; void *p; p = &a; printf("Integer variable is = %d", *( (int*) p) ); p...