Question #159

Author: admin
tags: Go  
Map is passed to the function without a pointer:
package main

import "fmt"

func main() {
	var m map[string]string = map[string]string{}
	m["city"] = "Adelaide"

	fmt.Println(m["city"]) // ??
	changeMap(m)
	fmt.Println(m["city"]) // ??
}

func changeMap(m map[string]string) {
	m["city"] = "Perth"
}
What will be printed?
Adelaide
Adelaide
Adelaide
Perth
Perth
Perth
Rate the difficulty of the question:
easyhard