Vidyalelo
C++ Programming · Q20

Functions and Procedures in C++

Programming · C++ Programming · question 20

Q20

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
Answer
C.
Compilation error due to missing return statement
D.
multiply(4, 3)

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board