Abstract
The size of arrays in C is set at compile time. In the previous chapter, you learned a way of defining dynamically allocated C strings, which are arrays of characters. In this chapter, you will see how you can define at runtime arrays of any type. If you haven’t read Chapter 6, I suggest that you quickly go through it, so that you can use it as a reference for this chapter.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2016 Giulio Zambon
About this chapter
Cite this chapter
Zambon, G. (2016). Dynamic Arrays. In: Practical C. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-1769-6_7
Download citation
DOI: https://doi.org/10.1007/978-1-4842-1769-6_7
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-1768-9
Online ISBN: 978-1-4842-1769-6
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books