20. Default Function Arguments

Question.5

A library header defines:

// library v1.0 header
void set_timeout(int ms = 100);

An application is compiled against v1.0. Later, the library is updated to v2.0:

// library v2.0 header
void set_timeout(int ms = 200);

The application is not recompiled — only the library binary is replaced. What timeout value does the application use?

Need Help? Refer to the Quick Guide below

Select Answer