00001 int 00002 main() 00003 { 00004 void* p0 = 0; 00005 p0 = 0; 00006 00007 /* pointer (NULL) -> integer */ 00008 long l01 = p0; 00009 l01 = p0; 00010 (long) p0; 00011 00012 /* integer -> pointer (NULL) */ 00013 void* p01 = l01; 00014 p01 = l01; 00015 (void*) l01; 00016 00017 00018 void* p1 = main; 00019 p1 = main; 00020 00021 /* pointer -> integer */ 00022 long l11 = p1; 00023 l11 = p1; 00024 (long) p1; 00025 00026 /* integer -> pointer */ 00027 void* p11 = l11; 00028 p11 = l11; 00029 (void*) l11; 00030 00031 /* pointer (NULL) -> bool */ 00032 _Bool b2 = p0; 00033 b2 = p0; 00034 00035 /* pointer -> bool */ 00036 _Bool b3 = p1; 00037 b3 = p1; 00038 00039 }