Type System¶
Primitive Data Type¶
intis a signed 32-bit integer type.longis a architecture-dependent signed 64-bit integer type.floatis a architecture-dependent signed IEEE 64-bit floating-point type.boolis an expression with a value of true or false.stringis a sequence of characters in ASCII enclosed in double-quotes and excludes the double-quote “ character.
void¶
void is no associated value and can only be used as the return type for functions that return nothing. But you will not explicitly declare it, omit ret statement(recommend) or write ret will work.