We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package main
import "fmt"
func main() { var a int = 0101 fmt.Println(a) }
Output: 65
The text was updated successfully, but these errors were encountered:
Working as intended. The leading 0 creates an octal constant. See the integer literals section of the Go language specification.
https://golang.org/ref/spec#Integer_literals
Sorry, something went wrong.
No branches or pull requests
package main
import "fmt"
func main() {
var a int = 0101
fmt.Println(a)
}
Output: 65
The text was updated successfully, but these errors were encountered: