gandalf_der_13te@feddit.org to Programmer Humor@programming.dev · 2 months agocan somebody confirm this pls?feddit.orgimagemessage-square21linkfedilinkarrow-up1150arrow-down11
arrow-up1149arrow-down1imagecan somebody confirm this pls?feddit.orggandalf_der_13te@feddit.org to Programmer Humor@programming.dev · 2 months agomessage-square21linkfedilink
minus-squaretreadful@lemmy.ziplinkfedilinkEnglisharrow-up17·2 months agoWhat does assigning ... do in C? Is that just default type value or something?
minus-squareVictoria@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up58·2 months agoprobably just placeholder because what is actually assigned isn’t relevant to the post
minus-squaregandalf_der_13te@feddit.orgOPlinkfedilinkarrow-up34·2 months agoit’s the easter egg operator. it assigns a random value to your variable. useful for when you need a quick source of good-enough randomness in computer games (/jk)
minus-squareTja@programming.devlinkfedilinkarrow-up14·2 months agoRelevant xkcd: https://xkcd.com/221/
What does assigning
...do in C? Is that just default type value or something?probably just placeholder because what is actually assigned isn’t relevant to the post
it’s the easter egg operator. it assigns a random value to your variable. useful for when you need a quick source of good-enough randomness in computer games (/jk)
Relevant xkcd: https://xkcd.com/221/