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;
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…