rob.s at telus.net
Mon Feb 28 22:47:51 PST 2005
Michael Walters wrote:
>Hello Shawn and everyone else in Progsig,
>I have read about 58% of the book, "Absolute Beginner's Guide to C". It is
>possible that the use of pointers to pass more than one variable may be
>mentioned in Shawn's suggestion to get around the limit of one variable
>passed from a function.
>But if the use of pointers to do what Shawn suggest is not covered in the
>book, I will wait for Shawn's reply.
>clug-progsig mailing list
>clug-progsig at clug.ca
Something i've just learned within the past few chapters of my book is
that you can pass arrays, and arrays of pointers to functions. You can
also pass structures, and (i believe) unions (just about to read the
chapter on unions) to functions.
These all deal with holding more than one piece of data within a 'tag'
name. Dont forget to double dereference ('**') when prototyping a
function that has an array of pointers passed to it. I spent a few hours
chasing a bug in my program, only to find out I left out an asterisk. I
must say i'm a bit jealous in hearing you're over half way through your
book that you just started reading. Its been a few months and i'm ~%75
More information about the clug-progsig