Unformatted text preview:

1 Arrays in Data Structure Declaration Initialization Memory representation 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 specific 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 We ll cover how to initialize the array at runtime using loops or predefined functions and how to take data from the user and store it in an array


View Full Document

Stanford CS 361A - Arrays in Data Structure

Documents in this Course
Load more
Download Arrays in Data Structure
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Arrays in Data Structure and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Arrays in Data Structure 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?