In C programming, typedef a structure suitable for holding
information about a radio station, including it's 4 character code
name (e.g., ZETA), it's catch phrase (e.g., "ZETA Rocks"), it's
frequency (e.g., 94.9), and the number of employees (e.g., 27).
Given the structure definitions
typedef struct {
int Counter;
float Average; }
hit_rate_type;
typdef struct {
char *Name;
hit_rate_type Killer; }
murder_type;
murder_type *JackTheRipper;
write code that mallocs memory for JackTheRipper, stores the name
"Jack the Ripper" in the Name field, and stores 99 in the
Counter.
In C programming, typedef a structure suitable for holding information about a radio station, including it's 4 character
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
In C programming, typedef a structure suitable for holding information about a radio station, including it's 4 character
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!