C语言讲义第10章
main( ) { static struct s1 { char c[4], *s;} s1={“abc”, “def ”}; static struct s2 { char *cp, struct s1 ss1;} s2={“ghi”,{“jkl”, “mno”}}; printf(“%c%c\n”,s1.c[0], *s1.s}; printf(“%s%s\n”, s1.c, s1.s); printf(“%s%s\n”,s2.cp, s2.ss1.s); printf(“%s%s\n”,++s2.cp, ++s2.ss1.s); } s1 \0 l k j \0 o n m s2 \0 i h g ss1 \0 f e d \0 c b a s ad abcdef ghimno hino 梦猛魁脆鼓谈饲擒机档瘟杯学宗庇举援来填停汁四粕傲涸拼筒汁铝煽八摄C语言讲义第10章C语言讲义第10章 struct wc { int a; int *b;} *p; int x0[ ]={11, 12}, x1[]={31,32}; static struct wc x[2]={100,x0,300,x1}; p=x; 300 100 12 11 32 31 p *p-b 11
原创力文档

文档评论(0)