Skip to content
Snippets Groups Projects
Commit 13ed37b6 authored by Henrik Theolin's avatar Henrik Theolin
Browse files

bare3_3

parent c3d3ce9b
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ fn main() -> ! { ...@@ -39,7 +39,7 @@ fn main() -> ! {
hprintln!("").unwrap(); hprintln!("").unwrap();
let a: [u8 ;4 ] = [65u8; 4]; let a: [u8 ;4 ] = [65u8; 4];
//let mut a = [0u8; 4]; let a = [0u8; 4];
hprintln!("").unwrap(); hprintln!("").unwrap();
hprintln!("a = {}", core::str::from_utf8(&a).unwrap()).unwrap(); hprintln!("a = {}", core::str::from_utf8(&a).unwrap()).unwrap();
...@@ -99,7 +99,7 @@ fn main() -> ! { ...@@ -99,7 +99,7 @@ fn main() -> ! {
//` //`
// Run the program, what happens and why? // Run the program, what happens and why?
// //
// ** your answer here ** // ** All elements in the final array are 0, The first variable "a" is shadowed by the second**
// //
// 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