๐ฆ#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
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
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)
๐ฆ #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
@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)
๐ฆ #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
๐ฆ#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"