Log in

View Full Version : Arguments and statements


andyhaus1057
Jul 12, 2009, 06:00 PM
a) How would I write a statement that calls the module, passing 12 as an argument?

Module showValue (Integer quantity)


b) By looking at the statement below, when this call executes, what values will be stored in a, b, and c?

Module myModule (Integer a, Integer b, Integer c)

Call myModule (3, 2, 1)

Perito
Jul 12, 2009, 06:02 PM
What programming language is this in?

a) probably "Call showvalue(ValueToBeShown)

b. a=3, b=2, c=1

andyhaus1057
Jul 15, 2009, 08:10 PM
This is in pseudocode