Vidyalelo
C++ Programming · Q4

Functions and Procedures in C++

Programming · C++ Programming · question 4

Q4

What is the correct way to call a function named "add" that takes two parameters in C++?

A.
add(a, b);
B.
add(int a, int b);
Answer
C.
functionName = add(a, b);
D.
add.functionName(a, b);

Answer: Option B

Solution

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