AskDefine | Define concatenate

Dictionary Definition



1 arranged into chained list
2 add by linking or joining so as to form a chain or series; "concatenate terms"; "concatenate characters"

User Contributed Dictionary



From the perfect passive participle stem of concatenare ‘chain together’, from con- ‘with’ + catenare ‘to chain’, from catena ‘chain’.




  1. To join or link together, as though in a chain.
    • 2003: Locke, by contrast, contended that [madness] was essentially a question of intellectual delusion, the capture of the mind by false ideas concatenated into a logical system of unreality. — Roy Porter, Flesh in the Age of Reason (Penguin 2004, p. 182)




  1. Form of Second-person plural imperative, concatenare#Italian|concatenare

Extensive Definition

In computer programming, concatenation is the operation of joining two character strings end to end. For example, the strings "foo" and "bar" may be concatenated to give "foobar". In programming languages, string concatenation is a binary operation usually accomplished by putting a concatenation operator between two strings (operands).
For example, the following expression uses the "+" symbol as the concatenation operator:
print "Hello " + "World";
which produces the output:
Hello World

Different languages

Different languages use different operators. Most languages use the "+" sign though several deviate from this norm.


For a more detailed comparison, please see the concatenation comparison article.

Programming conventions


Many languages, such as PHP and JavaScript have a variant of the assignment operator that allows concatenation and assignment to a variable in one statement.
For example, in PHP and Perl:
//Example 1 (concatenation operator ".") $var = "Hello "; $var = $var . "World";
//Example 2 (combined assignment and concatenation ".=") $var = "Hello "; $var .= "World";
Both examples produce the same result.


Some languages, (such as Perl, PHP, and most Unix shells), support variable interpolation as an alternative form of string concatenation.
For example, in Perl, the concatenation syntax:
my $stringVar; $stringVar = "World"; print "Hello " . $stringVar;
can be substituted with the string literal syntax:
my $stringVar; $stringVar = "World"; print "Hello $stringVar";
since double quoted string literals in Perl indicate scalar variables with the sigil ($) character.

See also

External links

concatenate in Bulgarian: Конкатенация
concatenate in German: Konkatenation (Listen)
concatenate in Spanish: Concatenación
concatenate in French: Concaténation
concatenate in Galician: Concatenación
concatenate in Dutch: Concatenatie
concatenate in Polish: Konkatenacja
concatenate in Russian: Конкатенация
concatenate in Simple English: Concatenation
concatenate in Swedish: Konkatenering
concatenate in Turkish: Concatenation
concatenate in Chinese: 串接

Synonyms, Antonyms and Related Words

accouple, accumulate, agglutinate, amass, articulate, assemble, associate, band, be continuous, bond, bracket, bridge, bridge over, catenate, cement, chain, clap together, collect, combine, comprise, conglobulate, conjoin, conjugate, connect, connect up, continuate, continue, copulate, couple, cover, embrace, encompass, form a series, gather, glue, include, join, knot, lay together, league, link, lump together, maintain continuity, marry, marshal, mass, merge, mobilize, pair, piece together, put together, roll into one, run on, solder, span, splice, stick together, string, string together, take in, tape, thread, tie, unify, unite, weld, yoke
Privacy Policy, About Us, Terms and Conditions, Contact Us
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2
Material from Wikipedia, Wiktionary, Dict
Valid HTML 4.01 Strict, Valid CSS Level 2.1