view test/tmp10.c @ 322:46ac55e8b14c

struct init by cast
author kono
date Sat, 19 Jun 2004 11:02:28 +0900
parents 096559f07a70
children
line wrap: on
line source

int chptrsave;
int p[3];
struct {int  a[100];} bbb;

main()
{
     int q[3];
     struct {int  a[100];} ccc;
     int i = chptrsave;
     i=q[0];
     i=p[0];
     bbb.a[55]=1;
     ccc.a[55]=1;
    return 0;
}