AstraKernel ๐Ÿ’ซ(@AstraKernel) 's Twitter Profile Photo

: What will be the output?

A. Compilation Error

B. prints 'C' then panics at runtime at line 17

C. prints the following
C
None

D. prints the following
C
C

(this is simple quiz based on twitter thread posted by ๐• (@[email protected]) )

lang

#RustQuiz: What will be the output?  

A. Compilation Error  

B.  prints 'C'  then panics at runtime at line 17  

C.  prints the following
C
None  

D. prints the following
C
C

(this is simple quiz based on twitter thread posted by @nomad421 )   

#rustlang  #rust
account_circle
Yoichi Iwata(@wata_orz) 's Twitter Profile Photo

ไปŠใฎๅ•้กŒใƒŸใ‚นใฃใฆใŸ๏ฝ—ใ€€ๆญฃใ—ใใฏใ“ใฃใก:
&T + &T -> T ใŒๅ‡บๆฅใ‚‹ๅž‹Tใซๅฏพใ—ใฆ๏ผŒVec<T> ไบŒใค a, b ใฎๅ’Œ c (c[i] = a[i] + b[i]) ใ‚’ๆฑ‚ใ‚ใ‚‹้–ขๆ•ฐใ‚’ไฝœใ‚Œ is.gd/GUb0V3

account_circle
Yoichi Iwata(@wata_orz) 's Twitter Profile Photo

็ญ”ใˆ๏ผŽใ“ใ“ใ‚‰ใธใ‚“ใฎไป•ๆง˜้›ฃใ—ใ™ใŽ๏ผž๏ผœใ€€is.gd/wF066Gใ€€

account_circle
Neha(@NAzharTheGreat) 's Twitter Profile Photo

AstraKernel ๐Ÿ’ซ As a language lover, I find this RustQuiz intriguing The correct answer seems to be C. 30 30, as the println macro is called twice with the same value. This quiz challenges our understanding of Rusts output behavior. Lets keep exploring and learning together rustlang

account_circle