3 ms·
You can do that, with a structure and a function pointer. struct a { void (*B)(); } struct a A = { .B = ... }; A.B();
by arcticbull 5y ago
You can do that, with a structure and a function pointer.
struct a {
void (*B)();
}
struct a A = { .B = ... };
A.B();
- futharkshill 5y agoGreat example, especially considering op found that he added that example as a mistake :D