Question.5
A firmware developer writes the following code:
uint8_t a = sensor_val; uint8_t b = calibration_val; a ^= b; b ^= a; a ^= b;
What firmware technique is this code demonstrating?
Select Answer
Error detection using XOR checksum
Swapping two values without a temporary variable
Toggling both variables to their bitwise complement
Encrypting sensor data with a calibration key