String Concatenation Operator
Previous Topic  Next Topic 

There is a special operator that can be used with strings, which is the concatenation operator.      This is the & symbol which if used is used to join two or more strings together:


a="1234";

b="567";

c=a & b & "89";    // c becomes "123456789"


The result above is that the variable c will be set to “123456789” which is a concatenation of the strings stored in variable a and b and the string constant “89”.