![zik.saleeba](/assets/img/avatar_default.png)
Diked out failing pointer test case for now Added platform return value example git-svn-id: http://picoc.googlecode.com/svn/trunk@127 21eae674-98b7-11dd-bd71-f92a316d2d60
28 lines
371 B
C
28 lines
371 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);
|
|
*/
|