โ† Cloudera questions

C++ function overloading and default arguments output

Filed under Cloudera

The question

Predict the output or behavior when calling add(2, 3) given two overloaded C++ functions: int add(int a, int b) and int add(int a, int b, int c = 0).

No write-up yet. Related questions below have one.

Related Cloudera questions

Collected from public candidate posts and coding forums. Updated Nov 2026.