/******************************************************************************
Online C Compiler.
Code, Compile, Run and Debug C program online.
Write your code in this editor and press "Run" button to compile and execute it.
*******************************************************************************/#include<stdio.h>
int main() {
int x[11]={0xAA,0x00,0x00,0x06,0x01, 0x00,0x00,0x00,0x00,0x00,0x00};
int chkSum = 0;
for (int i = 0; i < 11; i++) {
chkSum ^= x[i];
}
printf("byte 12 = 0x%02X ", chkSum);
}