boot2

Playing with the boostrap
git clone https://git.ryansepassi.com/git/boot2.git
Log | Files | Refs | README

00171.c (368B)


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