Will the following code compile?
fn main() { let v; }
Label each of the following numerical values with their number bases (decimal, octal, binary or hexadecimal) by filling in the blanks: 57 is 0o10 is 0x40 is 0b1010 is
What is the printed output of the following code?
struct Precise3DPoint {x: f32, y: f32, z: f32} fn main() { let p = Precise3DPoint {x: 32.456, y: 12.321, z: 98.546}; println!("{}", p.z) }
fn main() { println!("{}", reverse(100, 10)) } fn reverse(i, j) -> (i32, i32) { (j, i) }
Fill in the missing upper bound of the for loop so that the main function prints the five times table up to 60.
fn main() { for i in 1.. { println!("{}", 5*i); } }