For C
Write the code for the functions of:
int* allocate(int n) – this function should allocatea block of memory to store n integers and should return a pointerto that block of memory
void set(int *b, int index, int number) – thisfunction should take in a pointer to the block of memory and storethe value “number” at the specified index.
int get(int *b, int index) – this function shouldreturn the integer stored at the specified index.
Expert Answer
An answer will be send to you shortly. . . . .