adplus-dvertising
frame-decoration

Question

What is the output of the following code?
syms x;
if(x>50)
fprintf('Error')
end

a.

Error

b.

Prints Error

c.

Does not print error

d.

Cannot be determined

Posted under MATLAB

Answer: (a).Error

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the following code?