l08_6up - CSci 1113 C/C for Scientists and Engineers...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
: CSci 1113 C/C++ for Scientists and Engineers Section 010 - evening class Arrays Prof. Eric Van Wyk and Ted Kaminski Spring 2010 c ± Van Wyk and Kaminski CSci 1113: C/C++ for Scientists and Engineers, evening class Spring 2010 Page 1 / 11 : Finishing up last week I Exam results and discussion I Files and I/O I Recursive functions I Arrays c ± Van Wyk and Kaminski CSci 1113: C/C++ for Scientists and Engineers, evening class Spring 2010 Page 2 / 11 : Arrays I Read Savitch Chapter 5 I Arrays are our first interesting data type. I They allow us to create and manipulate lists of values. These values can be primitive types such as int or other data structures including arrays. c ± Van Wyk and Kaminski CSci 1113: C/C++ for Scientists and Engineers, evening class Spring 2010 Page 3 / 11 : Indexes / Offsets I An array element is identified by its offset or index value. I Given the array containing elements 0, 1, 4, 9, 16 we can reference on by its index - which starts at 0. So 0 is in the first position - at index 0. I
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/28/2010 for the course CSCI 1113 taught by Professor Staff during the Spring '08 term at Minnesota.

Page1 / 2

l08_6up - CSci 1113 C/C for Scientists and Engineers...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online