#RustChallenge
What is the result?
A.
Hello
Drop it - Samson
Drop it - Ross
Bye, World
B.
Hello
Drop it - Ross
Drop it - Samson
Bye, World
C. Error (explain why)
D.
Hello
Bye, World
Drop it - Samson
Drop it - Ross
#rustlang #rust
just vote we learn here
What is the result?
A.
Hello
Drop it - Samson
Drop it - Ross
Bye, World
B.
Hello
Drop it - Ross
Drop it - Samson
Bye, World
C. Error (explain why)
D.
Hello
Bye, World
Drop it - Samson
Drop it - Ross
#rustlang #rust
just vote we learn here
https://practice.rs/why-exercise.html
Practice Rust with challenging examples, exercises and projects💪
Practice Rust with challenging examples, exercises and projects💪
#RustChallenge
Simple rust challenge for you
What is the result?
A. Prints AstraKernel
B. Panics with error AstraKernel
C. Compilation error
D. Prints nothing
#rustlang #rust
Simple rust challenge for you
What is the result?
A. Prints AstraKernel
B. Panics with error AstraKernel
C. Compilation error
D. Prints nothing
#rustlang #rust
👍1
This media is not supported in your browser
VIEW IN TELEGRAM
https://fyrox.rs/
Fyrox is an open-source (opens new window) Rust game engine with lots of out-of-box game-ready features and a full-featured editor. Changes of this week was mostly focused on animation system improvements.
Fyrox is an open-source (opens new window) Rust game engine with lots of out-of-box game-ready features and a full-featured editor. Changes of this week was mostly focused on animation system improvements.
fn main() {
let x: i32 = 5;
let mut y: u32 = 5;
y = x;
println!("Success!");
} ez one this time
What is the result?
A- we get error
B- we get Success! message
#rustlang #rust #programing
✨ Using variable inside Format String
👉 It appears many people are not aware of this syntax that was introduced in Rust 1.58(2022/01/13)
👉 You can also use format specifiers along with it
#rustlang #rusttips #rust #learnrust #programming
👉 It appears many people are not aware of this syntax that was introduced in Rust 1.58(2022/01/13)
👉 You can also use format specifiers along with it
#rustlang #rusttips #rust #learnrust #programming
🦀 #RustChallenge
What is the result?
A. Error
B. Prints 2 4 6 8
C. Prints 2
D. Prints 2 6 8
#rustlang #rust
Vote here in channele
fn main() {
let mut i = 0;
'hello_world : loop {
i = i +2;
println!("{}",i);
if i < 4{
break 'hello_world;
}
if i < 10{
break ;
}
}
}What is the result?
A. Error
B. Prints 2 4 6 8
C. Prints 2
D. Prints 2 6 8
#rustlang #rust
Vote here in channele
🦀 #RustChallenge
#rust #rustlang #programing #dev
B - true true true true
C - false treu true true
D - true false true true
vote in channele 👇
#rust #rustlang #programing #dev
fn main(){
let a = "Hello";
let b = &*&&*a;
let c = &*&*a;
let d = &**&&*a;
println!("{}", format!("{:p}", c) == format!("{:p}", a));
println!("{}", format!("{:p}", c) == format!("{:p}", b));
println!("{}", format!("{:p}", c) == format!("{:p}", c));
println!("{}", format!("{:p}", c) == format!("{:p}", d));
}
A - err (explain)B - true true true true
C - false treu true true
D - true false true true
vote in channele 👇
👍3