196. Function Pointer

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?

Need Help? Refer to the Quick Guide below

Select Answer

Restart quiz!