Introduction to Computer Systems Chapter 14

Introduction to Computer Systems Chapter 14 - Chapter 14...

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

View Full Document Right Arrow Icon
Chapter 14 14.1. The function main() is the place in a C program where execution begins. A program without a function main() has no starting point. 14.3. a. The function declaration informs the compiler about the return type, input parameters, and function name for a given function. This information is required so that the compiler can generate code for a function call to this function if it appears in the source code prior to the function definition. b. A function prototype is the same as function definition. c. A function definition contains the source code for a function. d. An argument is an input value for a callee function. e. A parameter is a value provided by the caller function for at callee function. 14.5. The output of the program is "2 2". The variable 'z' in the function MyFunc() is declared within the local scope of the function. The value of 'z' from main() is passed to MyFunc(), but all operations on 'z' in MyProc affect only the local copy and not the one in main().
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 03/30/2008 for the course ECE 252 taught by Professor Wood during the Spring '08 term at Wisconsin.

Page1 / 4

Introduction to Computer Systems Chapter 14 - Chapter 14...

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