All of the programming exercises for Chapter 7: Procedures
DISCUSSION QUESTION
What is the difference between a subroutine and a function?
DISCUSSION QUESTION
When a subroutine is called, how is data passed from the calling program to the subroutine,
and how are the results of the subroutine returned to the calling program?
DISCUSSION QUESTION
What are the advantages and disadvantages of the pass-by-reference scheme used in Fortran?
DISCUSSION QUESTION
What are the advantages and disadvantages of each procedure array type?
DISCUSSION QUESTION
Suppose a 15-element array is passed to a subroutine. What happens if the subroutine attempts
to write to element a(16)?
DISCUSSION QUESTION
If a real value is passed to a subroutine in an argument that is declared to be an integer,
what happens?
DISCUSSION QUESTION
How can p7_6 be modified so that the compiler catches the argument mismatch between
the actual argument and the dummy argument in the subroutine?
DISCUSSION QUESTION
What is the purpose of the INTENT attribute? Where can it be used? Why should it be used?
NOT APPLICABLE
NOT APPLICABLE