🚀Question 205:
What does this print?🦀
fn main() {
let arr = [10, 20, 30];
let mut iter = arr.iter().rev();
println!("{:?}", iter.next());
println!("{:?}", iter.next());
}
🚀 Question 203:
What is the output? 🦀
fn main() {
let s1 = String::from("hi");
let s2 = String::from("rust");
let r: &str;
{
r = if s1.len() > s2.len() { &s1 } else { &s2 };
}
println!("{}", r);
}
🚀 Question 201:
What does this program print? 🦀
fn main() {
let mut s = String::from("rust");
{
let r = &mut s;
r.push_str("ace");
}
println!("{}", s);
}
🚀 Question 200:
What will this print? 🦀
```rust
fn main() {
let v = vec![1, 2, 3];
let iter = v.iter();
drop(v);
for x in iter {
println!("{}", x);
}
}
```
🚀 Question 199:
In Rust, what happens when your landlord sells the house? Do you still get to be the tenant? 🦀
```rust
fn main() {
let s1 = String::from("hi");
let s2 = &s1;
let s3 = s1;
println!("{}", s2);
}
```
🚀Question 198:
What is the output?🦀
fn main() {
let data = vec!["a", "bb", "ccc"];
let max = data.iter()
.max_by_key ( |s| s.len () )
.unwrap ();
println!("{}", max);
}
677 Followers 1K FollowingSenior Software Engineer with more than 25 years of experience. Java certified but Rust enthusiastic. Father of two. 🖐 DMs open!
234 Followers 2K FollowingMoney is just a way to keep score. The best people in any field are motivated by passion. That becomes more true the higher the skill level gets. Eric Raymond
23 Followers 184 FollowingQM | Muslim | Backend Engineer | System Design | Rust🦀 | Nest.js | Next.js | I dream a lot | Turning aspirations into reality | Startups
1.1M Followers 735 FollowingHigh-performance blockchain delivering the full stack for agentic finance & a new global economy. X account by @SuiFoundation.
👇 Join us @ Sui Basecamp 2026.
677 Followers 1K FollowingSenior Software Engineer with more than 25 years of experience. Java certified but Rust enthusiastic. Father of two. 🖐 DMs open!
211K Followers 544 Following- Head of DevRel Engineer at https://t.co/t5PMw0nLYM
- Software Developer
- Rust, Docker, Web Dev
- Docker Captain
- Keynote Speaker
- Building a 1M community...66%
1.2M Followers 158 FollowingWe're a community of millions of people who are learning math, programming, and computer science together. A 501(c)(3) public charity. Tweets by @abbeyrenn.
413K Followers 26K FollowingHelping the world move value since 2019. Try PayBox today. Title Partner of MoonPay X Games League. Posts here not for UK or EEA users - follow @moonpay_UK!
143K Followers 905 FollowingSolana's Leading NFT Marketplace: https://t.co/ozR7bnTQkq
Creators of the first 10k cNFT Collection: https://t.co/xiX2e2itwT 👾
25K Followers 5 FollowingTeaching the next generation of web3 developers.
150+ hours of Smart Contract Development and Security Courses, completely for Free.
Powered by @cyfrin
6K Followers 128 FollowingIndustry leading developer training from Solana Core contributors. Join the Discord and enroll in our free, flexible delivery courses at 👉 https://t.co/dUrBLPL9NC
15K Followers 416 FollowingOpinionated Texan software engineer who aims to build and share great software • Creator @webtui • SWE @americancloudco • Guns, TUIs, and Linux • ✝
5K Followers 547 FollowingSolana Summit has gone global. Bringing together founders, builders, investors, institutions, traders & creators. Built by the ecosystem. For the ecosystem.
398K Followers 337 FollowingSeeker, the definitive crypto mobile device. Powered by $SKR.
Order Seeker: https://t.co/GTbxrFaq4f Discord: https://t.co/4Hh5oj1myu