C语言:怎么打印二维数组中的字符串呢?我尝试%s,%c打出来的都不是 50
想把"UPGRADEFWU"打印出来,要怎么写才能打印出来呢?constuint8*constFILENAME[]={"\xFF\xFE""U\0""P\0""G\0""...
想把"UPGRADE FWU"打印出来,要怎么写才能打印出来呢?
const uint8* const FILENAME[] =
{
"\xFF\xFE" "U\0" "P\0" "G\0" "R\0" "A\0" "D\0" "E\0" ".\0" "F\0" "W\0" "U\0" "\0\0",
"UPGRADE FWU",
};
for (i = 0; i < sizeof(FILENAME) / sizeof(uint8*); i++)
{
void* file_name = (void*)FILENAME[i];
libc_printf("-- file_name = %s,%c,--\n",&file_name,&file_name);
libc_printf("##file_name = %s,%c ##\n",file_name,file_name); 展开
const uint8* const FILENAME[] =
{
"\xFF\xFE" "U\0" "P\0" "G\0" "R\0" "A\0" "D\0" "E\0" ".\0" "F\0" "W\0" "U\0" "\0\0",
"UPGRADE FWU",
};
for (i = 0; i < sizeof(FILENAME) / sizeof(uint8*); i++)
{
void* file_name = (void*)FILENAME[i];
libc_printf("-- file_name = %s,%c,--\n",&file_name,&file_name);
libc_printf("##file_name = %s,%c ##\n",file_name,file_name); 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询