You can do that, with a structure and a function pointer.
struct a {
void (*B)();
}
struct a A = { .B = ... };
A.B(); struct a {
void (*B)();
}
struct a A = { .B = ... };
A.B();