warning C4305: 'initializing' : truncation from 'const int ' to 'char '看应该怎么改这个程
显示的警告就是上面那个而且输出的是乱码
请大牛们帮忙改下啊
#include <stdio.h>
int main (void)
{
char n_Code[4] = {3,10,28,52};
char n_Name[8] = {345,1210,2772,5616,7104,354,1010,3192};
int i, j, k, n_result[8];
k = 0;
for (i = 0, j = 0;i < 8;i++,j++)
{
if (j > 4)
{
j = 0;
}
n_result[k]=(int)(n_Name[i] / n_Code[j]);
k++;
}
for (k = 0; k < 8;k++)
{
printf ("%c",n_result[k]);
}
printf("\n");
return 0;
}