12
Inkwell
8y

Just started learning C, had to tilt my head a little to understand this :

(void (*)(void *)) func ()

Comments
  • 2
    function func returns nothing, and takes as argument a void pointer.

    edit: was that a question, by the way :)
  • 0
    @cors It wasn't a question but thanks for the concise explaination anyway. It was better than the one I got originally which featured a lot of "umm" and "hang on".
  • 1
    @cors isn't it that this function which takes no parameters is cast as function described in your post ?
Add Comment