Difference between revisions of "String concatenation"
Jump to navigation
Jump to search
m (cat) |
m (links) |
||
| Line 1: | Line 1: | ||
| − | String concatenation in very simple terms is the joining of two strings. | + | '''String concatenation''' in very simple terms is the joining of two strings. |
| − | A string is a group of characters that can be | + | A string is a group of characters that can be [[alphabet]]ic, numeric or special characters. |
A numeric string must be converted to a numeric type before it can be used in calculations. | A numeric string must be converted to a numeric type before it can be used in calculations. | ||
Revision as of 04:08, November 26, 2008
String concatenation in very simple terms is the joining of two strings.
A string is a group of characters that can be alphabetic, numeric or special characters.
A numeric string must be converted to a numeric type before it can be used in calculations.
Concatenation is language dependant and may have different operators depending on the computer programming language used.
Example
a = "this is"
b = "my name."
print ab
printed > this ismy name (note no space between is and my )
print a + b
printed> this is my name ( the + operator joins the strings with a space between them. )