void type pointer in C Language | using void pointer in C
In C language we can also declare a void type pointer variable. void type pointer variable can contain address of variable of any other data type .
Program of void pointer. |
#include<stdio.h> int main() { int var1=20; void *var2; var2=&var1; printf("var2=%u",var2); return(0); } |
Output |
var2=65524
|
Popular Books of Computer Science