Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
6429 | siemargl | 1 | #include |
2 | |||
3 | int main() |
||
4 | { |
||
5 | int a; |
||
6 | int *b; |
||
7 | int *c; |
||
8 | |||
9 | a = 42; |
||
10 | b = &a; |
||
11 | c = NULL; |
||
12 | |||
13 | printf("%d\n", *b); |
||
14 | |||
15 | if (b == NULL) |
||
16 | printf("b is NULL\n"); |
||
17 | else |
||
18 | printf("b is not NULL\n"); |
||
19 | |||
20 | if (c == NULL) |
||
21 | printf("c is NULL\n"); |
||
22 | else |
||
23 | printf("c is not NULL\n"); |
||
24 | |||
25 | return 0; |
||
26 | } |
||
27 | |||
28 | /* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/ |