I had come across the following code:
typedef struct {
double x;
double y;
double z;
} *vector;
Is this a valid type definition? The code compiles and runs fine. I was just curious if this is common practice.
I had come across the following code:
typedef struct {
double x;
double y;
double z;
} *vector;
Is this a valid type definition? The code compiles and runs fine. I was just curious if this is common practice.