Hello!
The below sample code is from string.h
What is this void* cast? Under what circumstances can it be used? Can you please give an example or a link reference?
I thought that I recently saw passing an expression like that as an argument to a function. Is this true?
Thanks!
The below sample code is from string.h
Code:
#ifndef NULL #define NULL ((void*)0) #endif
What is this void* cast? Under what circumstances can it be used? Can you please give an example or a link reference?
I thought that I recently saw passing an expression like that as an argument to a function. Is this true?
Thanks!
Comment