![zik.saleeba](/assets/img/avatar_default.png)
git-svn-id: http://picoc.googlecode.com/svn/trunk@119 21eae674-98b7-11dd-bd71-f92a316d2d60
27 lines
366 B
C
27 lines
366 B
C
int a;
|
|
int *b;
|
|
int c;
|
|
|
|
a = 42;
|
|
b = &a;
|
|
printf("a = %d\n", *b);
|
|
|
|
struct ziggy
|
|
{
|
|
int a;
|
|
int b;
|
|
int c;
|
|
} bolshevic;
|
|
|
|
bolshevic.a = 12;
|
|
bolshevic.b = 34;
|
|
bolshevic.c = 56;
|
|
|
|
printf("bolshevic.a = %d\n", bolshevic.a);
|
|
printf("bolshevic.b = %d\n", bolshevic.b);
|
|
printf("bolshevic.c = %d\n", bolshevic.c);
|
|
|
|
b = &(bolshevic.b);
|
|
printf("bolshevic.b = %d\n", *b);
|
|
|