Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@rchaganti
Created August 13, 2020 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rchaganti/b15475bb628b88cd3e905564427cf531 to your computer and use it in GitHub Desktop.
Save rchaganti/b15475bb628b88cd3e905564427cf531 to your computer and use it in GitHub Desktop.
d4-typeCompare.go
Create a program that uses shorthand declaration to declare variables of types `int`, `string`, and `bool` and assigns the values 10, 'hello', and true respectively.
What happens when you use the statement `fmt.Println(i == s)`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment