mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-17 19:32:23 -07:00
16 lines
192 B
Odin
16 lines
192 B
Odin
#import "fmt.odin"
|
|
|
|
main :: proc() {
|
|
Vec3 :: struct {
|
|
x, y: i16
|
|
z: ?i32
|
|
}
|
|
a := [..]int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
|
|
offset: u8 = 2
|
|
ptr := ^a[4]
|
|
|
|
|
|
fmt.println((ptr+offset) - ptr)
|
|
}
|
|
|