Join The Discussion

Comments (1)

  1. Saad Mansoor
    Saad Mansoor:
    1 month ago

    The given answer (Option B: add(int a, int b);) is incorrect.

    add(int a, int b); is a function declaration, not a function call.

    To call a function named add with two arguments a and b, the correct syntax is:
    add(a, b);

    Therefore, the correct answer is Option A (add(a, b);).

Related Questions on Functions and Procedures in C plus plus