Q:

Create the following two variables:

0

 Create the following two variables:

>> var1 = 123;

>> var2 = '123';

Then, add 1 to each of the variables. What is the difference?

All Answers

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

>> var1 + 1 % 123 + 1 --> 124

ans =

 124

>> var2 + 1 % '1'+1-->'2', '2'+1-->'3', '3'+1-->'4'

ans =

 50 51 52

>> char(ans)

ans =

234

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