2 ms·
Above comment indented with two spaces to preserve asterisks: No, image is an Image*, so *image is an Image, so sizeof(*image) is the amount of memory you
by biot 15y ago
Above comment indented with two spaces to preserve asterisks:
No, image is an Image*, so *image is an Image, so sizeof(*image)
is the amount of memory you need to allocate for an Image. Saying
sizeof(*image) rather than sizeof(Image) allows you to change
the type of image in one fewer place, should you want to do that.
- kragen 15y agoThank you!