Difference between revisions of "String concatenation"
From Conservapedia
IblannkPAGES (Talk | contribs) (Blanked the page) |
m (Reverted edits by IblannkPAGES (Talk) to last version by SteveMH) |
||
Line 1: | Line 1: | ||
+ | '''String concatenation''' is the joining of two series of characters, or strings. The characters can be [[alphabet]]ic, numeric, special characters or a combination thereof. Concatenation is language dependent and may have different operators depending on the computer programming language used. | ||
+ | '''Example''' | ||
+ | |||
+ | a = "this is"<br> | ||
+ | b = "my name."<br> | ||
+ | print ab <br> | ||
+ | printed > this ismy name (note no space between is and my )<br> | ||
+ | print a + b <br> | ||
+ | printed> this is my name ( the + operator joins the strings with a space between them. )<br> | ||
+ | |||
+ | |||
+ | [[Category:Computers]] |
Revision as of 13:20, November 15, 2009
String concatenation is the joining of two series of characters, or strings. The characters can be alphabetic, numeric, special characters or a combination thereof. Concatenation is language dependent 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. )