in c language !! typedef struct { long restaurant_id; char restaurant_name[10]; char description[120]; double rate; char cuisine[30]; opening_year; long capacity; char city[30]; char address[60]; char...


in c language !!


typedef struct
{
long restaurant_id;
char restaurant_name[10];
char description[120];
double rate;
char cuisine[30];
 opening_year;
long capacity;
char city[30];
char address[60];
char owner[30];
} RECORD_t, *RECORD;



RECORD delete (unsigned long restaurant_id, RECORD *restaurant_array, unsigned long *p_size)
{
int rec;
int index;
// index <- find="" the="" index="" of="" the="" record="" with="" given="" restaurant_id="" in="" restaurant_array="" (i="">
if (index is valid)
rec=restaurant_array[index];
else
rec=NULL;


return rec;
}



Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here