Files
clearn/struct1.c

24 lines
179 B
C
Raw Normal View History

2017-02-07 20:03:49 +00:00
#include <stdio.h>
struct a
{
int a1;
} ;
struct b
{
int b1;
struct a b2;
} ;
int main()
{
struct b sb;
sb.b1=1;
sb.b2.a1=2;
printf("%d : %d",sb.b1,sb.b2.a1);
return 0;
}