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

bare3_2

parent 5fbe12a2
No related branches found
No related tags found
No related merge requests found
......@@ -55,27 +55,40 @@ fn main() -> ! {
// 1. What is the output in the `openocd` (Adapter Output) console?
//
// ** your answer here **
// s = ABCD
// bs = [65, 66, 67, 68]
// iterate over slice
// 65,66,67,68,iterate iterate using (raw) indexing
// 65,
// 66,
// 67,
// 68,
//
//
// a = AAAA
// What is the type of `s`?
//
// ** your answer here **
// &str
//
// What is the type of `bs`?
//
// ** your answer here **
//
// &[u8]
// What is the type of `c`?
//
// ** your answer here **
// &u8
//
// What is the type of `a`?
//
// ** your answer here **
// array [u8;4]
//
// What is the type of `i`?
//
// ** your answer here **
//
// usize
// Commit your answers (bare3_1)
//
// 2. Make types of `s`, `bs`, `c`, `a`, `i` explicit.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment