Skip to content
Snippets Groups Projects
Commit 0963b3d0 authored by Gustav Hansson's avatar Gustav Hansson
Browse files

bare3 3

parent 97f91516
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ fn main() -> ! {
hprintln!("").unwrap();
let a: [u8; 4] = [65u8; 4];
// let mut a = [0u8; 4];
let mut a = [0u8; 4];
hprintln!("").unwrap();
hprintln!("a = {}", core::str::from_utf8(&a).unwrap()).unwrap();
......@@ -96,7 +96,8 @@ fn main() -> ! {
//`
// Run the program, what happens and why?
//
// ** your answer here **
// a becomes a list of length 4 with each value being 0. This is translated as the null char in the ascii table
// This gives an output of: "a ="
//
// Commit your answers (bare3_3)
//
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment