I almost finished my C Primer Plus book, and I'm going to click Structures and Unions, etc. etc., but I still don't understand what exactly the void keyword means. What does emptiness do? How it works? And when should I use it?
I understand that
void function(void)
basically says no return value. no arguments. I know that you can use different scenarios,
int function(void);
void function(int);
I also understand that
void * p = 0L;
is valid code and that it is basically a pointer to void with an initialized value of length 0.
but is there any meaning or purpose to use it that way
void k = 0;
? , - ?
, ,
,
size_t fwrite(const void * restrict ptr, ...more args...);
, " catchall " "Pre-ANSI C char * , ".
, ?
, ?
... , int void. , --void , , . , " ?" " ?".
.