What is a void pointer?Consider the following code snippet
What happens when the line void *k is encountered?Code:#include<stdio.h> void main() { float i=10,*j; void *k; k=&i; j=k; printf("%f",*j); }
How is the assignment done?Does that mean k holds the address of i?Also,why doesn't the following code work?
Thanks.Code:#include<stdio.h> void main() { float i=10,*j; void *k; k=&i; printf("%d",*k); }