#include<stdio.h>
#include<stdlib.h>
struct test
{
char name[20];
void (*func)(char *);
};
void tttfunc(char *name)
{
printf("current is %d
",__LINE__);
printf("%s
",name);
}
int main()
{
struct test ttt=
{
.name = "zhang",
.func = tttfunc,
};
ttt.func(ttt.name);
return 0;
}