#include <stdio.h>
#include <string.h>
typedef struct {
char str[16];
int n;
float f;
} STExample;
int main() {
STExample a = { "abc", 9098, 3.14f };
printf("%s %d %f\n", a.str, a.n, a.f);
STExample b = { "", 8472, 8.912f };
strcpy(b.str, "xyz");
printf("%s %d %f\n", b.str, b.n, b.f);
return 0;
}
/*
run:
abc 9098 3.140000
xyz 8472 8.912000
*/