What's a good Science Fair Procedure?

Help with computer science procedure test question?

  • Suppose the procedure Test is defined as Procedure Test (A) A = A +2 End Procedure If parameters is passed by reference, what will be printed when the following program segement is executed: X = 10 Call Test (X) Print Value of X

  • Answer:

    With call-by-reference, the location in memory of X is passed and the procedure Test will change X. Hence 12 will be printed. (Had it been call-by-value, then X would not change and 10 would be printed.)

Jackie J at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.