Question: Data Structure in c (15 points) In class we created an opaque object for a type called MY_VECTOR that had an internal structure called My_vector
(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, an integer pointer data that held the address of the first element of a dynamic array of integers Write a function called my vector init default) that initializes the vector to have a should zero, capacity of seven and an appropriate value in the data pointer. Your function return the address of an opaque object upon success and NULL otherwise
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
