[Solved] C: error: array has incomplete element type ‘void’ [closed]


void is not a complete type. It is only used either in a function definition to state that it either takes no parameters or returns no value, or as a generic pointer i.e. void *ptr.

As such, a variable of type void cannot exist.

solved C: error: array has incomplete element type ‘void’ [closed]