HW7 - c Local variable a variable declared in a function...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
LisaMarie Migliorisi November 14, 2010 CSC126 Homework 7 3. a) Actual parameter : A variable or expression listed in a call to a function Formal parameter : A variable declared in the function heading b) Value parameter : A formal parameter that received a copy of the content of the corresponding actual parameter. Reference parameter : A formal parameter that received the location of the corresponding actual parameter.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: c) Local variable: a variable declared in a function Global variable: a variable declared for a program 4. a) Take Programming I. b) Take Programming II. c) Take invalid input. You must enter a 1 or 2 d) Take invalid input. You must enter a 1 or 2 8. void func(int &sum, int testScore) { sum += testScore; } 9. 5 10 15 20 10 20 30 20 20 40 20 40...
View Full Document

This note was uploaded on 03/16/2011 for the course CSC 126 taught by Professor Zelikovitz during the Spring '11 term at Staten Island.

Ask a homework question - tutors are online