lec7-c - ECE 175 One-dimensional arrays and functions...

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

View Full Document Right Arrow Icon
ECE 175
Background image of page 1

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

View Full DocumentRight Arrow Icon
One-dimensional arrays and functions Passing one-dimensional arrays as arguments to functions Scope of the array variables Use of arrays to return multiple values from a single function 05/11/09 ECE 175, Fall 2007 2
Background image of page 2
Analyze the use of one-dimensional arrays for returning multiple values from a single function Declaration, initialization and access and of multi- dimensional arrays Use of multidimensional arrays with functions 05/11/09 ECE 175, Fall 2007 3
Background image of page 3

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

View Full DocumentRight Arrow Icon
05/11/09 ECE 175, Fall 2007 4 Why not call functions inside printf ?
Background image of page 4
05/11/09 ECE 175, Fall 2007 5 array is set as constant Array s[] is used for function output Function is declared as type void Changes external data of array corresponding to s[] This value might have been changed by a call of another function
Background image of page 5

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

View Full DocumentRight Arrow Icon
ECE 175, Fall 2007 6 Initialization of external variable within a function Why do we initialize at x[0]? (and not zero for example)
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 18

lec7-c - ECE 175 One-dimensional arrays and functions...

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

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