CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Which of the following operators will combine two string constants?

A
_
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
+
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
*
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
++
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B +
In programming languages, “+” operator is used to combine two string constants (Concatenation). For Example “Hello,” + “World” = “Hello, World”. Hence, option (B) is the correct answer.

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Why Friction?-tackle
PHYSICS
Watch in App
Join BYJU'S Learning Program
CrossIcon