Given the following struct definition; USE C PROGRAM #define MAX 20 typedef struct{ int items[MAX]; int count; }Array; Define the functions: void addItem(Array *a, int item); // adds item to the array...


Given the following struct definition; USE C PROGRAM


#define MAX 20


typedef struct{
    int items[MAX];
    int count;
}Array;


Define the functions:


void addItem(Array *a, int item); // adds item to the array
void printArray(Array a); // displays elements of items
int isFull(Array a); //returns 1 if the items is full; 0 if otherwise
int isEmpty(Array a); //returns 1 if the items is empty; 0 if otherwise



Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here