Dsa PGRM 1
Dsa PGRM 1
h>
#include <stdlib.h>
struct Day {
};
scanf("%s", day->dayName);
scanf("%d", &day->date);
create(&calendar[i]);
printf("\n");
}
//Function to free the dynamically allocated memory for dayName and activity.
free(calendar[i].dayName);
free(calendar[i].activity);
int main() {
int size;
scanf("%d", &size);
if (calendar == NULL) {
return 1;
read(calendar, size);
display(calendar, size);
return 0;