Skip to content
Snippets Groups Projects
Commit cdbdb395 authored by Samuel Karlsson's avatar Samuel Karlsson
Browse files

bare3: tack 3

parent 28156ff5
No related branches found
No related tags found
No related merge requests found
File added
...@@ -26,7 +26,7 @@ fn main() { ...@@ -26,7 +26,7 @@ fn main() {
} }
let mut a: [u8; 4] = [65; 4]; let mut a: [u8; 4] = [65; 4];
//let mut a = [0u8; 4]; let mut a = [0u8; 4];
ipln!(); ipln!();
ipln!("iterate iterate using (raw) indexing"); ipln!("iterate iterate using (raw) indexing");
let i: usize; let i: usize;
...@@ -89,6 +89,8 @@ fn main() { ...@@ -89,6 +89,8 @@ fn main() {
// 3. uncomment line 28 (let mut a = [0u8; 4];) // 3. uncomment line 28 (let mut a = [0u8; 4];)
// what happens and why // what happens and why
// ** your answer here ** // ** your answer here **
// the outprint from a become:
// a =
// //
// commit your answers (bare3_3) // commit your answers (bare3_3)
// //
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment