You are given an incomplete firmware diagnostic logging API.
The logging function is intended to support multiple data types using the same function name, relying on compile-time resolution to select the correct implementation.
Your task is to extend the API using function overloading so that:
if, switch) are usedInput / Program Flow:
The firmware diagnostic logic logs values in different formats depending on the data type:
Both operations must use the same function name, and the compiler must decide which function to invoke based only on the argument type.
Output:
The program must print exactly:
int=10
float=2.50 Constraints:
if, switch)
Input
Expected Output
int=10 float=2.50