Go code
func size() (int, int) {
return 640, 480
}
width, height := size()
fmt.Println(width, height)Line-by-line explanation
- The signature promises two ints.
- Return sends both values in order.
- Two variables receive them.
- Println displays both.
Expected output
640 480This is the expected result.