Question: I need help creating three functions for my dynamic array C# class da.c The three functions are declared in da.h that i need help with
I need help creating three functions for my dynamic array C# class da.c
The three functions are declared in da.h that i need help with
extern DA *newDA(void);
extern void setDAdisplay(DA *,void (*)(void *,FILE *));
extern void setDAfree(DA *,void (*)(void *));
This is the header file

and the Method behavoir for these functions are
newDA - The constructor returns an initialized DA object.
setDAdisplay - This method is passed a function that knows how to display the generic value stored in an array slot.
setDAfree - This method is passed a function that knows how to free the generic value stored in an array slot.
And assertion for newDA is the that the memory allocated shall not be zero.
Thanks so much
#ifndef DA INCLUDED #define DA INCLUDED- #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
