adplus-dvertising
frame-decoration

Question

What is the output of the following code?
sym x c; 
if(x~=c)
fprintf('Error');
end

a.

Error

b.

Error due to x

c.

Error due to c

d.

Output suppressed

Posted under MATLAB Programming MATLAB

Answer: (b).Error due to x

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?