About Lesson
Void Pointer
It is a pointer which has no associated data type with it. It can point to any data of any datatype and can be typecasted to any type.
#include<stdio.h>
void main()
{
int n=10;
void *ptr;
ptr=&n;
printf(“%d”,*(int *)ptr);
}