Having issue wrapping my head around concatenation in c++

The sprintf function uses printf format strings.