Answer the question
In order to leave comments, you need to log in
What does typedef void(*func)(); mean?
What does typedef void(*func)(); mean? ?
Answer the question
In order to leave comments, you need to log in
Creates a type synonym, i.e. func is now a pointer to a function https://ideone.com/kWPmcd
PS it's better to use using, it has more human syntax https://ideone.com/vwyp8X
func will be a pointer to a function that takes no parameters and returns nothing.
It is worth reading this https://habrahabr.ru/post/116255/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question