指针数组问题求大神,谢谢大家
static char *tblHex_Bin[16] = {
"0000","0001","0010","0011",
"0100","0101","0110","0111",
"1000","1001","1010","1011",
"1100","1101","1110","1111"
};
//十六进制表
static const char *tblDec_Hex = "0123456789ABCDEF";
在main函数外定义的静态数组,后面要进行字符串比较然后确定是数组中的那个字符串,我想改成指针不用数组(if (strcmp(tblHex_Bin[j], pTmp) == 0),这是数组的比较),怎么定义个指针变量引用静态数组的首地址?我定义了char *p = tblHex_Bin,不合法,求帮忙。