C Programming Reference >> C Basic Tutorials >> C Keywords Home >> voidui 30/12/06 - Views - Ratings : This keyword appears frequently in c programming. It has different meaning at different postion. It is used represent a non value returning function. It is used to represent a empty parameter list of functon. It is also used to create generic pointers. These pointers can be converted to any valid pointer type. This is also pointer returned by dynamic memory allocation functions. Code - void function (void)
{
int a = 10;
void *ptr;
int *b;
ptr = &a;
b = (int *) ptr;
}
|