Question.6
A developer assigns a function with the wrong signature:
void handler_a(int code) { /* ... */ } float handler_b(int code) { return 0.0f; } void (*cb)(int) = handler_a; void (*cb2)(int) = handler_b;
Will the second assignment compile?
Select Answer
No, the return type is a mandatory part of the signature
Yes, return values are ignored in pointer assignments
Yes, but the return value is automatically discarded
No, but only if the function is declared static
static