#include <stdio.h>
#include <math.h>

typedef struct vec_type
{
   double x;
   double y;
   double z;
}vec_t;

int main(void){

   vec_t v = {1.0, 2.0, 3.0};
   double *w = (double *) &v;
   printf("%lf %lf %lf\n", v.x, v.y, v.z);
   printf("%lf %lf %lf\n", w[0], w[1], w[2]);

   return 0;

}
