typedef void int_void(int);
int_void
is a function taking an integer and returning nothing.
My question is: can it be used "alone", without a pointer? That is, is it possible to use it as simply int_void
and not int_void*
?
typedef void int_void(int);
int_void test;
This code compiles. But can test
be somehow used or assigned to something (without a cast)?
/* Even this does not work (error: assignment of function) */
typedef void int_void(int);
int_void test, test2;
test = test2;