mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
11 lines
122 B
V
11 lines
122 B
V
fn main(){
|
|
mut array := [3]int{}
|
|
mut arrayptr := &int(array)
|
|
|
|
for _ in 0..3 {
|
|
unsafe {
|
|
*(arrayptr++) = 0
|
|
}
|
|
}
|
|
}
|