I have an Arduino sketch, which is basically c++, that has these lines of code in it:
uint32_t cardid = uid[0];
cardid <<= 8;
cardid |= uid[1];
The Arduino is connected to a pn532 RFID reader so basically it scans the card that comes in range and prints the UID on it.
But I cannot understand what the operators |= and <<= do.
I found online that they have something to do with valarrays but I have never used such things.