What is the use of ‘*’ operator in a string manipulation?
Answers
Answered by
4
Answer:
The * operator can be used to repeat the string for a given number of times. Writing two string literals together also concatenates them like + operator. If we want to concatenate strings in different lines, we can use parentheses.
Answered by
12
Answer:
The * operator can be used to repeat the string for a given number of times. Writing two string literals together also concatenates them like + operator. If we want to concatenate strings in different lines, we can use parentheses.
Similar questions