repo.or.cz
/
tinycc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix (Cexpr?struct1:struct2).member
[tinycc.git]
/
tests
/
tests2
/
19_pointer_arithmetic.c
blob
aff65e5b5109311fb1df5b8a452e2bdd78d242f8
1
#include <stdio.h>
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 :*/