Void Pointers in C :
- In C General Purpose Pointer is Called as void Pointer.
- It does not have any data type associated with it
- It can store address of any type of variable
Declaration :
void * pointer_name ;
Example :
void *ptr; // ptr is declared as Void pointer char cnum; int inum; float fnum; ptr = &cnum; // ptr has address of character data ptr = &inum; // ptr has address of integer data ptr = &fnum; // ptr has address of float data

0 Comments:
Post a Comment
Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email