add: unfinished code. people are having problems

This commit is contained in:
Inanc Gumus
2018-11-13 17:43:25 +03:00
parent 67b20e5755
commit 490223331c
103 changed files with 4218 additions and 3 deletions

View File

@ -0,0 +1,25 @@
package main
import "fmt"
func main() {
var (
myAge byte
herAge byte
// uncomment the code below and observe the error
// wrongDeclaration [-1]byte
zero [0]byte
ages [2]byte
agesExp [2 + 1]byte
tags [5]string
)
fmt.Printf("%d %d\n", myAge, herAge)
fmt.Printf("%#v\n", zero)
fmt.Printf("%#v\n", ages)
fmt.Printf("%#v\n", agesExp)
fmt.Printf("%#v\n", tags)
}