• code_rusty Profile Picture

    Mr. Rust @code_rusty

    3 weeks ago

    🚀 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); }

    3 0 12 2K 2
  • pkraszewski Profile Picture

    Paweł Kraszewski @pkraszewski

    3 weeks ago

    @code_rusty Before you answer (wrong) - remember in Rust, even a bare '{ }' creates a new scope, with all its consequences. Thing I dearly miss in other languages.

    1 0 3 172 0
  • moksh168 Profile Picture

    Moksh @moksh168

    3 weeks ago

    @code_rusty surely s gets moved to the inner scope because you're creating the reference inside, and then you can't access it in the println

    1 0 0 41 0
  • Download Image
    • Privacy
    • Term and Conditions
    • About
    • Contact Us
    • TwStalker is not affiliated with X™. All Rights Reserved. 2024 www.instalker.org

    twitter web viewer x profile viewer bayigram.com instagram takipçi satın al instagram takipçi hilesi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al sosyalgram takipçi satın al instagram ücretsiz takipçi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al metin2 metin2 wiki metin2 ep metin2 dragon coins metin2 forum metin2 board popigram instagram takipçi satın al takipçi hilesi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al buyfans buy instagram followers buy instagram likes buy instagram views buy tiktok followers buy tiktok likes buy tiktok views buy twitter followers buy telegram members Buy Youtube Subscribers Buy Youtube Views Buy Youtube Likes forstalk postegro web postegro x profile viewer