package mainimport "fmt"var a intvar b int func modify(array [5]int) { array[len(array)-1] = 100 fmt.Println("in modify(),array values:", array)}func slices(){ fmt.Print("slices is ok") }func main(){ array := [5] int{1,2,3,4,55} fmt.Println("*" ) array[0] = 10 for i,v := range array{ fmt.Println("Array element[",i,"]=",v) } modify(array) fmt.Println(array[len(array)-1]) fmt.Println("in main(), array values:", array) /* for a := 0;a<=100;a++{ for b := 0;b<=10;b++{ fmt.Println("number is:",a) fmt.Println("number is:",a+b) fmt.Print("aaa" ) } } */ ds := "Hellow Word\t" cs := "2017-06-24" es := ds + cs //fmt.Println(es,es[len(es)]) fmt.Println("len[es]",es,ds,cs[1]) slices()}