4 ms·
Absolutely! This is why I'll iterate through all and manually set each and every single element. You can even do it in one line, too: for (unsigned int i = 0; i
by klingonopera 8y ago
Absolutely! This is why I'll iterate through all and manually set each and every single element. You can even do it in one line, too: for (unsigned int i = 0; i < 3; i++) {b[i] = 2;}
EDIT: Just noticed your code example uses structs. My example is for arrays, for which these observations are also correct.