Q:

Given the following function header: function doit(a, b) Which of the following function calls would be valid – and why?

0

 Given the following function header:

function doit(a, b)

Which of the following function calls would be valid – and why?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

fprintf('The result is %.1f\n', doit(4,11))

INVALID – Nothing is returned, so there is nothing to print

doit(5, 2, 11.11)

INVALID – too many input arguments

x = 11;

y = 3.3;

doit(x,y)

VALID

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now