SyntaxFix
Write A Post
Hire A Developer
Questions
When you use Vector *one you are merely creating a pointer to the structure but there is no memory allocated to it.
Vector *one
Simply use one = (Vector *)malloc(sizeof(Vector)); to declare memory and instantiate it.
one = (Vector *)malloc(sizeof(Vector));