Question: (15 points) In class we created an opaque object for a type called MY VECTOR that had an internal structure called My vector consisting of

(15 points) In class we created an opaque object for a type called MY VECTOR that had an internal structure called My vector consisting of an integer size, an integer capacity, and an pointer data that held the address of the first element of a dynamic array of integers. initializes the vector to have a size of Write a function called my vector init default) that zero, capacity of seven and an appropriate value in the data pointer. Your function should return the address of an opaque object upon success and NULL otherwise (15 points) In class we created an opaque object for a type called MY VECTOR that had an internal structure called My vector consisting of an integer size, an integer capacity, and an pointer data that held the address of the first element of a dynamic array of integers. initializes the vector to have a size of Write a function called my vector init default) that zero, capacity of seven and an appropriate value in the data pointer. Your function should return the address of an opaque object upon success and NULL otherwise
Step by Step Solution
There are 3 Steps involved in it
To create a function called myvectorinitdefault that initializes a MYVECTOR object lets follow these ... View full answer
Get step-by-step solutions from verified subject matter experts
