打印字符串后面出现?号怎么解决
#include<stdio.h>#include<string.h>
int main()
{
char a[80],b[80],a1[80],b1[80];
int i,t,j,k;
gets(a);
getchar();
gets(b);
t = 0;
for(i = 0;i < 80;i++)
{
if(i % 2 != 0)
{
a1[t] = a[i];
t++;
}
}
a1[t] = '\0';
t = 0;
for(i = 0;i < 80;i++)
{
if(i % 2 != 0)
{
b1[t] = b[i];
t++;
}
}
b1[t] = '\0';
puts(a1);
puts(b1);
printf("%d",strcmp(a1,b1));
return 0;
}