Concatenate A String

[Solved] Concatenate A String | Solidity - Code Explorer | yomemimo.com
Question : String Concatenation

Answered by : eric-tam

first = "first words"
second = "second words"
third = first+second
print(third)

Source : | Last Update : Tue, 05 Jul 22

Question : String concatenation

Answered by : talented-toad-phlvif59rpwi

#create an empty string c
c=""
#read input strings and store them in a and b
read a b
#for loop to append a group of strings to the variable c.
for val in $a 'ipsum' $b 'sit amet' 10
do c+="$val "
done
#The result is a string that consists of all the elements concatenated into a single string
echo "$c"

Source : https://www.geeksforgeeks.org/shell-script-to-concatenate-two-strings/ | Last Update : Sun, 21 Aug 22

Question : String concatenation

Answered by : talented-toad-phlvif59rpwi

#Read inputs a and b and store string variables in them.
read a b
#append b to the string a
a+=$b
#Output the resulting string
echo $a

Source : https://www.geeksforgeeks.org/shell-script-to-concatenate-two-strings/ | Last Update : Sun, 21 Aug 22

Answers related to concatenate a string

Code Explorer Popular Question For Solidity