C
c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
struct monster{
char id[7];
char name[21];
char type[10];
float size;
char loc[100];
} mons[10];
void datamonster(struct monster *mon);
main()
{
strcpy(mons[0].id,"FAT123");
strcpy(mons[0].name,"Fatalis");
strcpy(mons[0].type,"Large");
mons[0].size = 2341.91;
strcpy(mons[0].loc,"Elder Biome");
strcpy(mons[1].id,"PAL041");
strcpy(mons[1].name,"Palico");
strcpy(mons[1].type,"Pets");
mons[1].size = 15.10;
strcpy(mons[1].loc,"Home Biome");
void datamonster(struct monster *mon);
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run