modernc.org/ccgo/v3@v3.16.14/lib/testdata/tcc-0.9.27/tests/tests2/19_pointer_arithmetic.c (about)

     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 :*/