In Q basic
Which of the following oprators will combine 2 string constant
i.//
ii. +
iii.*
iv. ++
Give explanation also
Answers
Answered by
0
You concatenate strings by using the + operator. For string literals and string constants, concatenation occurs at compile time; no run-time concatenation occurs.
Answered by
2
Correct option is (ii.)
In programming languages, “+” operator is used to combine two string constants (Concatenation). For Example “Hello,” + “World” = “Hello, World”. Hence, option (ii.) is the correct answer.
Similar questions