mirror of
https://git.aramjonghu.dev/AramJonghu/ziglings.git
synced 2026-09-04 17:23:44 +02:00
pointers exercises done
This commit is contained in:
@@ -31,7 +31,7 @@ pub fn main() void {
|
||||
|
||||
// Please define pointer "p" so that it can point to EITHER foo or
|
||||
// bar AND change the value it points to!
|
||||
??? p: ??? = undefined;
|
||||
var p: *u8 = undefined;
|
||||
|
||||
p = &foo;
|
||||
p.* += 1;
|
||||
|
||||
Reference in New Issue
Block a user