Variable Length Structure
Learn how to store varying length structures in memory.
Requirements
Suppose your program has the following requirements:
- The structure has three fixed-size elements, one of varying size
- All elements are to be stored in adjacent memory locations
Example program
See the code given below!
Get hands-on with 1300+ tech skills courses.