Skip to content
Advertisement

Tag: void

C – invalid conversion from ‘void*’ to ‘void (*)()’

I am getting the following when I try to compile my program: These are the lines of code that are causing the errors: What am I missing? Answer You have void *function but void* is not a correct type of a function pointer. void (*)() is a type of a function pointer, so probably you should change your function signature:

Advertisement