Question
Asked by:
knf31081
knf31081
Rating (57): B+
Questions Asked: 15
Tutorials Posted: 54, earned $1,930.04
 

$10.00 What will the formula psuedocode program display?

Q:
What will the formula psuedocode program display?

Module main()
Declare Integer x = 1
Declare Real y = 3.4
Display x, , y
Call changeUs (x, y)
Display x, , y)
End Module

Module changeUs(Integer Ref a, Real Ref b)
{
Set a = 0
Set b = 0.0
Display a, , b
}
 


   
   
   
   
 
Available Tutorials to this Question
Posted by:
stevesov
stevesov
Rating (14): A-
Questions Asked: 0
Tutorials Posted: 109, earned $214.74
 

$10.00 Argument passing "technique" makes a lot of difference...

  • This tutorial was purchased 1 time and rated A+ by students like you.
  • Posted on Jan 14, 2009 at 11:10:40PM
A:
Preview: ... ssing a critical piece of "information" in your pseudocode. How does the CALLER construct the argument list??? In the above description... I am assuming that the CALLING program sets up a typical non-value-protected "call by reference". This assumption may not be valid.<br><br>Some languages are designed so that the "arguments you pass" to the called routine are freshly allocated out of scratch memory, copied to the scratch space, and then deallocated after the called routine is complete. SO it ...

The full tutorial is about 404 words long plus additional clarification.
   
Join Now or Log In
Get Tutoring
Get Paid
Academic Honesty