view test/tmp12.c @ 308:e1d17d6adfcc

struct field init (first try, no compile error)
author kono
date Thu, 10 Jun 2004 16:24:15 +0900
parents 096559f07a70
children 0c256ea2a97e
line wrap: on
line source



struct {
    int a;
    char *b;
} x1;

// int b;

main()
{
    int a;
    x1.a = 1;
    a = 133;
    printf("%d %d\n",x1.a,a);
    return 0;
}