Junior — Senior
What output will the console get in example №5
livecode
Task condition
Determine which lines will appear in the console output after running the following Go program.
package main
import (
"fmt"
)
func main (){
arr1 := [...]int{1, 2, 3, 4, 5}
arr2 := arr1[:4]
arr3 := append(arr1[:2], 9, 8, 7)
fmt.Println(string(arr3))
fmt.Println(string(arr2))
fmt.Println(string(arr1))
}