Question Detail
Question
What is the primary reason the
+ operator does not automatically add spaces when concatenating strings?
Correct Answer
Option B is the correct answer.
Detailed Explanation
The document states, 'The + operator does not add spaces automatically. You must add them yourself!' This design choice gives the programmer explicit control over every character in the resulting string, allowing for precise formatting whether spaces are desired or not.
Hint
Consider the benefit of having explicit control over string content versus automatic behavior.