首页 > 试题广场 >

写出下面程序的运行结果[$##$]。 struct a

[填空题]

写出下面程序的运行结果1

struct abc{
int a;
float b;
char *c; };
int main(void)
{
struct abc x = {23,98.5,"wang"};
struct abc *px = &x;
printf("%d, %s, %.1f, %s \n", x.a, x.c, (*px).b, px->c );
return 0;
}

23 ,wang,98.5,wang
发表于 2020-04-12 01:49:11 回复(0)
23 wang 98.5 wang
发表于 2019-01-14 14:47:11 回复(4)