Which operator in Go is used to concatenate strings?
- '&'
- '*'
- '+'
- '<<'
In Go, the '+' operator is used to concatenate strings. It concatenates two strings together to form a new string. The '&' operator is used for addressing, '*' for dereferencing, and '<<' for bit shifting.
Loading...
Related Quiz
- How does the sync.WaitGroup type help in managing a collection of Goroutines?
- In a type switch statement, each case specifies a type followed by the keyword _______.
- Which keyword is used to create a goroutine in Go?
- How would you use a switch statement in Go to evaluate non-constant expressions?
- In a distributed database system, what are some challenges associated with ensuring ACID properties across multiple nodes?