picoc/tests/19_pointer_arithmetic.c
2009-04-19 11:49:01 +00:00

21 lines
230 B
C

int a;
int *b;
int *c;
a = 42;
b = &a;
c = NULL;
printf("%d\n", *b);
if (b == NULL)
printf("b is NULL\n");
else
printf("b is not NULL\n");
if (c == NULL)
printf("c is NULL\n");
else
printf("c is not NULL\n");