🚀 #RustChallenge

Put your Rust skills to the test with a modified FizzBuzz:

1️⃣ Divisible by 3: Print "Fizz"
2️⃣ Divisible by 5: Print "Buzz"
3️⃣ Divisible by both: Print "FizzBuzz"
4️⃣ Else: Print the number

Use `match`, `if let`, and loops to solve. Let's see your solutions!

🦀#RustChallenge

This will throw a compilation error

Fix this code in a short or better way

(Btw, this might compile in the future and work. Because, It was said that shortcomings of rustc & will be fixed in future)
#rustlang #rust

#RustChallenge

What will be result?

A. Both X & Y will give error
B. Y will give error & X will print "Kernel" and "Astra"
C. X will print "Kernel" & Y will print "Kernel" and "Astra"
D. both prints "Kernel" & "Astra"

(it was shared in ThePrimeagen stream by one of viewers)

#rustlang #rust

🦀 #RustChallenge

Will it print Hello World?

A. No, it will give compilation error

B. Yes, it will print `Hello World`

C. No, it will panic at runtime but prints 1

This challenge was brought to you by @tuxmain

#rustlang #rust #developer

@AstraKernel I have a #RustChallenge for you.

What will be the output of the following code:

- A) nothing, it's not valid rust code 😞
- B) nothing, it will crash runtime 💩
- D) something nice 😻
- E) undefined behavior 💀
#rust #cpp #unsafe #gnu #crablang #imsorry #nice

🦀 #RustChallenge

What will be the output in "Nightly"?

A. Compilation error (already mentioned nightly so it might run, but will you trust me? 😜)

B. prints "return"

C. prints "!"

D. prints nothing

It's been a long time since I posted (found this in discord)

#rustlang #rust

#RustChallenge

What will happen?

Credits: @timClicks (Author of Rust in Action book)

#rustlang #rust

🦀 #RustChallenge:

What is the output?

A. Both X and Y prints "True" and "False"

B.
Only Y prints "True" and "False"
X just prints "False"

C. Gives compilation error

D. Runtime error

i know i know, sorry... :P

#rustlang #rust

🦀#RustChallenge

What is the output?

A. Prints memory address 3 times

B.
"Rust"
Memory Address
Memory Address

C.
"R"
"u"
"st"

D.
"Rust"
"Rust"
"Rust"

#rustlang #rust