D
D
D0ct0r_Murder2018-02-20 19:37:26
C++ / C#
D0ct0r_Murder, 2018-02-20 19:37:26

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

2 answer(s)
D
devalone, 2018-02-20
@devalone

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

A
Anatoly Zharov, 2018-02-20
@SeaBreeze876

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 question

Ask a Question

731 491 924 answers to any question