struct ci { char ci_c[6]; int ci_i; }; struct cif { struct ci cif_ci; float cif_f; }; struct cif test_var = { { {'a', 'b', 'c', 'd', 'e', 0 }, 100 }, 12.25 }; main() { printf("cif_ci_c:%s, expect:abcde.\n", test_var.cif_ci.ci_c); printf("cif_ci_i:%i, expect:100.\n", test_var.cif_ci.ci_i); printf("cif_f:%.2f, expect:12.25.\n", test_var.cif_f); }