2010-06-13 07:58:52 -04:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2009-04-19 07:49:01 -04:00
|
|
|
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");
|
|
|
|
|
2010-07-27 12:20:09 -04:00
|
|
|
|
|
|
|
void main() {}
|