Skip to content
Snippets Groups Projects
Commit 06dbb6fd authored by Hammarkvast's avatar Hammarkvast
Browse files

bare3_3

parent b3b7f7ad
Branches
No related tags found
No related merge requests found
......@@ -37,8 +37,8 @@ fn main() -> ! {
hprintln!("").unwrap();
let a = [0u8; 4];
// let mut a = [0u8; 4];
//let a = [0u8; 4];
let mut a = [0u8; 4];
hprintln!("").unwrap();
hprintln!("a = {}", core::str::from_utf8(&a).unwrap()).unwrap();
......@@ -111,6 +111,10 @@ fn main() -> ! {
// Run the program, what happens and why?
//
// ** your answer here **
//
// Everything basically acts as normal, except for the final line which
// is a = , this is because whats right of the equal sign is the value of
// a turned from ASCII to a character, which in this case is NULL.
//
// 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