"Can I say a int64 type variable takes 8 bytes of memory and a int32 type 
variable takes 4 bytes of memory?"

You can answer your question by reading the specification.

The Go Programming Language Specification
https://golang.org/ref/spec

Numeric types
https://golang.org/ref/spec#Numeric_types

int8        the set of all signed  8-bit integers (-128 to 127)
int16       the set of all signed 16-bit integers (-32768 to 32767)
int32       the set of all signed 32-bit integers (-2147483648 to 
2147483647)
int64       the set of all signed 64-bit integers (-9223372036854775808 to 
9223372036854775807)

byte        alias for uint8

Peter

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to