-
Which is an equivalent code to invoke a function fun of class opt that expects two arguments p and q?
-
- opt.fun(p,q);
- fun(p,q);
- opt.fun(p) && opt.fun(q);
- opt(p,q);
- None of these
Correct Option: A
The two argument in a function are separated by a comma (,). The code above is an invocation expression: it includes a function expression opt.fun and two argument expressions, p and q.