| int |
|
typedict |
| |
An
int
is the only supported integral type, and it is a 32 bit
signed integer that ranges from
yoix.math.MIN_INT
to
yoix.math.MAX_INT.
Uninitialized integers, no matter where they happen to be declared,
always start at
0.
There are no primitive types in Yoix;
integers are first class objects, so you never need special wrappers,
like Java's Integer class.
| |
| Example: |
The program,
import yoix.*.*;
int n1; // uninitialized
int n2 = 65535; // decimal
int n3 = 0177777; // octal
int n4 = 0xFFFD + 2; // hex + decimal
printf("n1=%d, n2=%d, n3=%d, n4=%d\n", n1, n2, n3, n4);
prints
n1=0, n2=65535, n3=65535, n4=65535
on standard output.
| | |
| See Also: |
typedict
|
|
Yoix is a registered trademark of AT&T Inc.
|