Question #240

Author: admin
tags: Go  
package main

import "fmt"

func main() {
	var mySlice []int
	fmt.Println(mySlice == nil) // true
	mySlice = append(mySlice, 100)
	fmt.Println(mySlice) // ??
}
What will be printed?
nil
[]
[100]
Message: "panic: runtime error: index out of range..."
The code will not be compiled
Rate the difficulty of the question:
easyhard