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

bare3_1

parent 1b9deadc
No related branches found
No related tags found
No related merge requests found
...@@ -56,26 +56,49 @@ fn main() -> ! { ...@@ -56,26 +56,49 @@ fn main() -> ! {
// //
// ** your answer here ** // ** your answer here **
// //
// bare3
//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`? // What is the type of `s`?
// //
// ** your answer here ** // ** your answer here **
// //
// s is a string of characters (str)
//
// What is the type of `bs`? // What is the type of `bs`?
// //
// ** your answer here ** // ** your answer here **
// //
// bs is a list of integers (&[u8])
//
// What is the type of `c`? // What is the type of `c`?
// //
// ** your answer here ** // ** your answer here **
// //
// i is each element in the list bs (u8)
//
// What is the type of `a`? // What is the type of `a`?
// //
// ** your answer here ** // ** your answer here **
// //
// [u8; 4]
//
// What is the type of `i`? // What is the type of `i`?
// //
// ** your answer here ** // ** your answer here **
// //
// usize
//
// Commit your answers (bare3_1) // Commit your answers (bare3_1)
// //
// 2. Make types of `s`, `bs`, `c`, `a`, `i` explicit. // 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