mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 14:03:10 -05:00
11 lines
366 B
Diff
11 lines
366 B
Diff
--- exercises/039_pointers.zig 2023-10-03 22:15:22.122241138 +0200
|
|
+++ answers/039_pointers.zig 2023-10-05 20:04:07.016099467 +0200
|
|
@@ -30,7 +30,7 @@
|
|
|
|
// Please make num2 equal 5 using num1_pointer!
|
|
// (See the "cheatsheet" above for ideas.)
|
|
- num2 = ???;
|
|
+ num2 = num1_pointer.*;
|
|
|
|
std.debug.print("num1: {}, num2: {}\n", .{ num1, num2 });
|
|
}
|