Difference between revisions of "String concatenation"

From Conservapedia
Jump to navigation Jump to search
m (links)
(Rearranged for easier understanding, corrected spelling, clarified context.)
Line 1: Line 1:
'''String concatenation''' in very simple terms is the joining of two strings.  
+
In computer programming, a string is a series of characters.  The characters can be [[alphabet]]ic, numeric or special characters, or a combination thereof. '''String concatenation''', in very simple terms, is the joining of two strings. A numeric string must be converted to a numeric type before it can be used in calculations. Concatenation is language dependent and may have different operators depending on the computer programming language used.  
 
 
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.  
 
 
 
Concatenation is language dependant and may have different operators depending on the computer programming language used.  
 
  
 
  '''Example'''
 
  '''Example'''

Revision as of 16:00, November 30, 2008

In computer programming, a string is a series of characters. The characters can be alphabetic, numeric or special characters, or a combination thereof. String concatenation, in very simple terms, is the joining of two strings. A numeric string must be converted to a numeric type before it can be used in calculations. 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. )