Question.3
A developer defines two overloads:
void send(int val); void send(double val); send(3.14f); // Pass a float
Which overload is called?
Select Answer
send(int) — float is truncated to int
send(int)
float
int
send(double) — float is promoted to double (standard floating-point promotion)
send(double)
double
Compilation error — ambiguous between int and double
Neither — a send(float) overload is required
send(float)