181k views
2 votes
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 integer pointer data that held the address of the first element of a dynamic array of integers. Write a function called copyVECTOR that receives an opaque object (of type MY_VECTOR) and returns the address of an exact copy of the passed opaque object upon success and NULL otherwise.

User Kastaneda
by
2.8k points

1 Answer

2 votes
What is all this bro?
User BitShifter
by
3.5k points