package main import ( "fmt" ) func main() { arr1 := []int{32, 57, 35, 22} arr2 := []int{32, 57, 35, 22} arr1 = append(arr1, 0) // Making space for the new element copy(arr1[3:], arr1[2:]) // Shifting elements arr1[2] = 99 // Copying/inserting the value fmt.Println(arr1) // Printing Result …
Read More »