HeyMrDeadMan@lemmy.world to Ask Lemmy@lemmy.worldEnglish · 2 months agoIndex and middle, or middle and ring?NSFWmessage-squaremessage-square10linkfedilinkarrow-up10arrow-down10file-text
arrow-up10arrow-down1message-squareIndex and middle, or middle and ring?NSFWHeyMrDeadMan@lemmy.world to Ask Lemmy@lemmy.worldEnglish · 2 months agomessage-square10linkfedilinkfile-text
minus-squareSlicedPotato@feddit.dklinkfedilinkarrow-up0·2 months agoThe two else ifs should be switched, because if the second one is true, the first one is also always true, so you’ll never reach the second one.
minus-squareprintf("%s", name);@piefed.blahaj.zonelinkfedilinkEnglisharrow-up0·2 months agoThanks! I’m just trying to learn some on my free time 🤣
The two
else ifs should be switched, because if the second one is true, the first one is also always true, so you’ll never reach the second one.Thanks! I’m just trying to learn some on my free time 🤣