Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "fmt"
- "math"
- )
- func main() {
- // num is the maximal int32 value.
- num := math.MaxInt32
- // Get -2147483648.
- fmt.Println(num + 1)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement