August 26th, 2009, 02:56 AM
Beginner question about functions.
I'm currently wondering the following:
I've wrote a couple functions that call other functions, this forces me to add more arguments to the function doing the calling because the function it calls requires the extra arguments.
I was wondering if there is a way to essentially to get the variables into the function that needs to call another function without adding more arguments.
I would like to keep the functions I make nice and simple and keep the arguments down to a minimum for future use so I don't have to brush up on a given function because it has a lot of arguments.
Also I have a general question to any one out there:
As a beginner to programming, I haven't seen many functions other than my own, so I'm wondering how many arguments would the average function have?
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!