CS8391 Final: Data structure part1

13 views3 pages
26 Feb 2023
Department
Course
Professor

Document Summary

1. 1 arrays in data structure | declaration, initialization, In this note, we"ll discuss how data is represented in memory, and the need for arrays. Faerie explains the need for arrays as we often have to process large amounts of data, and arrays allow us to store multiple values under one variable name. We"ll cover how arrays can be declared and how data can be stored in memory. The declaration of arrays is language-speci c, and in this video, we"ll consider the syntax in the c language. The elements of the array are stored in consecutive or continuous locations, with their index starting from zero. The size of the array cannot be changed at runtime. We"ll discuss how data is stored in memory, with the binary form of the data being converted and then stored. The formula to calculate the address of an element is the base address plus the index value multiplied by the size of the data type.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents

Related Questions