Sunday, June 22, 2025



Right Click to Search

Wednesday, January 6, 2025

Void Pointers in C Programming Language


Void Pointers in C :
  1. In C General Purpose Pointer is Called as void Pointer.
  2. It does not have any data type associated with it 
  3. 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




Bookmark & Share

Tags / Keywords : |

vote
now
Buzz up!
Stumble
Delicious
Technorati
Twitter
Facebook

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

 

Learn C Programming Copyright © 2010 LKart Theme is Designed by Lasantha, Free Blogger Templates