boot2

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

00195.c (344B)


      1 #include <stdio.h>
      2 
      3 struct point
      4 {
      5    double x;
      6    double y;
      7 };
      8 
      9 struct point point_array[100];
     10 
     11 int main()
     12 {
     13    int my_point = 10;
     14 
     15    point_array[my_point].x = 12.34;
     16    point_array[my_point].y = 56.78;
     17 
     18    printf("%f, %f\n", point_array[my_point].x, point_array[my_point].y);
     19 
     20    return 0;
     21 }
     22 
     23 /* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/