Search for notes by fellow students, in your own course and all over the country.

Browse our notes for titles which look like what you need, you can preview any of the notes via a sample of the contents. After you're happy these are the notes you're after simply pop them into your shopping cart.

My Basket

You have nothing in your shopping cart yet.

Title: data structures and algorithms
Description: it is very useful to crack your interview

Document Preview

Extracts from the notes are below, to see the PDF you'll receive please use the links above


Understanding Memory and Arrays in Programming
In programming, memory is essentially a long tape of bytes, with each byte
containing 8 bits
...
To
understand the need for arrays, we need to examine how areas can be declared,
initialized, and represented in memory
...
For example, the data type int typically takes up 4 bytes to store an integer
...
In
traditional compilers, we generally take 2 or 4 bytes to be the data type for
storing numbers
...

The memory manager would allocate some memory for storing a variable, and the value
stored in memory would be represented in binary
...

Using Arrays
An array is a collection of more than one element of the same datatype
...
The number of elements in an array is
determined by the size of the array
...
In C language, for
example, we would write:
int n;
to declare an integer variable
...

Initializing Arrays
Arrays can also be initialized with values
...
In a one-dimensional array, the elements are stored in a single row with
multiple columns
...
For
example, an array of integers would take up 2-4 bytes of memory per element
...



Title: data structures and algorithms
Description: it is very useful to crack your interview