What are strings?

354 views

There is a recent tweet in which a lady said 1+2=12.

Obviously that is wrong but everyone keeps saying “it’s wrong unless we are talking about strings”

What are strings?

Edit: thank you all for explaining:) have a cookie 🍪 and a wonderful day

In: 6

10 Answers

Anonymous 0 Comments

In programming, sequences of text are often called strings (a string of letters).

Now, we can treat 1+2 as numbers, in which case: the number one added to the number two equal the number three.

or we can treat it as text: the text “1” added to the text “2” results in the text “12”.

You are viewing 1 out of 10 answers, click here to view all answers.