[clug-progsig] subroutines in C?
waltersm at telusplanet.net
Sun Feb 27 20:02:36 PST 2005
Thank you for your information. I have saved your message in my C directory
and have printed out your message for future reference when I write my two
Thank you so much for your help.
On February 27, 2005 08:46 pm, you wrote:
> Yep, you can pass as many parameters as you needed.
> Something like this:
> void myFunction(int param1, int param2, int param3)
> //Do something
> On Sunday 27 February 2005 19:59, Michael Walters wrote:
> > Hello Shawn,
> > I guess that functions in C are like functions in Fortran and assembler -
> > they only return one variable at a time.
> > But can two parameters be passed to a function? If only one parameter can
> > be passed to a function, then I can not evaluate the two functions even
> > one parameter at a time.
> > And you are right, I am not advanced enough to deal with pointers.
> > If I can pass two parameters at a time to each function, please let me
> > know, and then I can write the two functions.
> > Otherwise, let me know that I can only pass one parameter at a time to a
> > function, and I will write the code into a single program without using
> > functions.
> > Once I know whether or not two parameters can be passed to a function I
> > can either write the two functions or write the program to solve the two
> > equations in a main line program and test it.
> > I will not attempt to write my program until I get your answer.
> > Regards,
> > Michael Walters
More information about the clug-progsig