Examveda

What is the output of the following code: int multiply(int x, int y) { return x * y; } int main() { cout << multiply(3, 4); } in C++?

A. multiply(3, 4)

B. 12

C. Compilation error due to missing return statement

D. multiply(4, 3)

Answer: Option B


Join The Discussion

Related Questions on Functions and Procedures in C plus plus