"geo" <geometrikal@hhoottmmaaiill> wrote in message
news:clcm-20030623-...
> hi all
>
> say if i had :
>
> struct random_struct {
> .....
> .....
> .....
> }
>
> struct random_struct random;
>
> and then i had a function which used this structure. What is the best
> programming practice:
>
> void function(struct random_struct * r) {
> .......
> }
>
> function(&random);
>
> or:
>
> void function(struct random_struct r) {
> .......
> }
>
> function(random);
>
>
> and why?
>
> Thanks
> Ross
> --
> comp.lang.c.moderated - moderation address:
don't worry

--
comp.lang.c.moderated - moderation address: