why to use a void pointer for dereferencing variables of datatypes? – stackoverflow.com

Dereferencing a float variable using void pointer: #include<stdio.h> int main() { float a = 7.5; void *vp=&a; printf("%f",*(float*)vp); /*typecasting void pointer to float for ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "why to use a void pointer for dereferencing variables of datatypes? – stackoverflow.com"