What is the output of the following code? prod(1:NaN) A. NaN B. 1 C. 0 D. Error Answer Workspace Report Discuss Answer with explanation Answer: Option A Explanation The correct answer is NaN The range, we have defined, from 1 consists of NaN. The product of any number with NaN will give an output NaN Workspace
Discuss about the question