Skip to content
Snippets Groups Projects
Commit 8810c0d0 authored by Anton Grahn's avatar Anton Grahn
Browse files

bare3_3

parent 85519722
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,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();
......@@ -102,7 +102,11 @@ fn main() -> ! {
// Run the program, what happens and why?
//
// ** your answer here **
//
// The output for a is:
// a =
// a is an array of zeros and when its printed it takes the ascii value of 0
// which is null so it doesnt print anything
//
// Commit your answers (bare3_3)
//
// 4. Alter the program so that the data from `bs` is copied byte
......
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