Hi, First post... What is the advantage of passing parameters into and out of a subroutine? Why not declare and use global variables -- no passing at all.
I've written a program that calls some subroutines, and it occurred to me that simply declaring globals and not passing parameters is simplest. I Googled some, but with such broad terminology (subroutines, global, parameters) the flood of hits wasn't very helpful. What are the pro's and con's of simply declaring all variables used in the subroutine as global and be done with it? Thanks, Dave C.
