Difference between revisions of "String concatenation"

From Conservapedia
Jump to: navigation, search
m (cat)
(Undo revision 1776976 by WOW (talk))
 
(6 intermediate revisions by 6 users not shown)
Line 1: Line 1:
String concatenation in very simple terms is the joining of two strings.  
+
'''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.  
 
+
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'''
 
  '''Example'''

Latest revision as of 16:35, July 11, 2021

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. )