|
course.wilkes.edu/CS125Labs |
||||
Experiment 1: Changing Value Parameters
The Question: Is it permissible to alter (e.g., assign a value to) a value parameter?
Hypothesis: In the space below, construct a hypothesis that answers the question.
(Don't worry -- hypotheses aren't graded - just make a guess.)
void Change(int param1, int param2, int param3)
{
param1 = 1;
param2 = 2;
param3 = 3;
}
and is called in the main program with the statement:
Change(arg1, arg2, arg3);so that if it is not permitted to alter a value parameter, then compiling params.cpp will produce errors.
Observation: Translate your source program.
In the space below, record what you observe.
|
Home Membership
|
|||
|
Last update: Wednesday, August 23, 2000 at 3:02:24 PM. |
||||