Comparison of programming languages (strings): Difference between revisions

Content deleted Content added
Line 22:
 
* [[Awk]] uses the empty string: two expressions adjacent to each other are concatenated. This is called [[Juxtaposition]]. [[Unix shell]]s have a similar syntax. [[Rexx]] uses this syntax for concatenation including an intervening space.
* [[C (programming language)|C]] allows juxtaposition for string literals, however, for strings stored as [[Character (computing)|character]] [[arrays]], the ''<code>[[strcat]]''</code> function must be used.
* [[MATLAB]] and [[Octave programming language|Octave]] use the syntax "[x y]" to concatenate x and y.
* [[Visual Basic]] Versions 1 to 6 can also use the "+" sign but, this leads to ambiguity if a string representing a number and a number is added together.