114. Void Pointer Get link Facebook X Pinterest Email Other Apps #include<stdio.h> void *v; char ch='c'; int i=10; float f=23.5; void main() { v=&ch; printf("%c\n",*(char *)v); v=&i; printf("%d\n",*(int *)v); v=&f; printf("%f\n",*(float *)v); } Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment