求助,请问这个程序第一行至第四行输出什么东西?
#include<stdio.h>struct st
{
char c;
char s[80];
};
char * f(struct st t);
void main()
{
int k;
struct st a[4]={{'1',"123"},{'2',"321"},{'3',"123"},{'4',"321"}};
for(k=0;k<4;k++)
printf("%s\n",f(a[k])); }
char * f(struct st t)
{
int k=0;
while(t.s[k]!='\0')
{
if(t.s[k]==t.c) return t.s+k;
k++;
}
return t.s;
}