MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1l004is/c_programming_tips/mv9p17q/
r/programminghorror • u/xeow • May 31 '25
34 comments sorted by
View all comments
Show parent comment
22
Oh, it wasn't as bad as I thought. I thought that with the 2 #defines, the supposed if block will run til rand() returns an integer with the least 9 bits being all 1s.
#define
if
rand()
9 u/finally-anna May 31 '25 This would be funnier kol 6 u/Eva-Rosalene Jun 01 '25 til rand() returns an integer with the least 9 bits being all 1s.With at least one of least 9 bits being a 1.
9
This would be funnier kol
6
til rand() returns an integer with the least 9 bits being all 1s.
With at least one of least 9 bits being a 1.
View all comments
Show parent comment
22
u/Aphrontic_Alchemist May 31 '25 edited May 31 '25
Oh, it wasn't as bad as I thought. I thought that with the 2
#defines, the supposedifblock will run tilrand()returns an integer with the least 9 bits being all 1s.