A void function does not return any value as output and can take input values. The function below seems a void function, but there is the operator *, why?
void *function(){
printf("hello")
}
That is not a void
function. That is a function that returns a void*
(pointer). But it seems incomplete, because the printf()
has no semicolon ;
and the function does not actually return a void*
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.