|
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| • |
But,
what if we didn’t want to waste memory for
|
|
|
the
title (100 characters may be way too big (Big,
|
|
with
Tom Hanks)
|
|
|
| • |
So,
let’s change our video structure to include a
|
|
|
dynamically
allocated array:
|
|
|
|
struct
video {
|
|
|
|
char *
title;
|
|
|
|
char
category[5];
|
|
|
|
int
quantity;
|
|
|
|
};
|
|
|
|