C语言相关问题
const uint8_t CC[16] = {0x30, 0x31, 0x32, 0x33,0x34,0x35, 0x36, 0x37, 0x38, 0x39, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46}; uint8_t One_FunA(uint8_t bin) {
bin &= 0x0F;
return CC[bin];
}
uint16_t One_FunB(uint8_t hex) {
uint16_t u16=0x0;
uint8_t h = hex&0xF0;
h = h >> 4;
h = One_FunA(h);
uint8_t l = One_FunA(hex&0x0F);
u16 = ((uint16_t)h)<<8;
u16 |= (uint16_t)l;
return u16;
}
uint8_t abc[5] = {0xA9, 0x52, 0x33, 0x0A, 0x7F};
void One_FunC(void) {
uin16_t dabc[5];
for (uint8_t i=0; i<sizeof(abc); i++) {
dabc[i] = One_FunB(abc[i]);
}
while(1);
}
请回答:
1. 该程序段的执行起点是哪个函数?
2. One_FunA 、One_FunB 、One_FunC 的调用关系如何?
3. 执行完该程序段后,数组“dabc”的首末项值分别为:
dabc[0] = ;dabc[4] =