pointers exercises done

This commit is contained in:
2026-06-06 23:27:39 +02:00
parent a5bbd016eb
commit 28a82c5c08
4 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -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;