Can somebody please explain to me why the below code got the "invalid operands to binary ==" error?
typedef int (*func_t)(int);
#define NO_FUNC ((func_t) 0)
struct {
const char *name;
func_t func;
} table[] = { {"func1", NO_FUNC} };
if (table[0] == NO_FUNC) { // invalid operands to binary ==
}
table[0].func == NO_FUNC?