Afficher un message
Vieux 17/10/2007, 10h37   #2
Nick Keighley
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: What should be the prototype of this function ? (noonie)

On 17 Oct, 10:24, "ian...@gmail.com" <ian...@gmail.com> wrote:

> I have a struct defined thus:
>
> typedef struct myStruct
> {
> int j;
>
> } myStruct;
>
> I saw somewhere calls with the following syntax:
> f1(&*a)
>
> What should be the protype of f1 so that it will be correct and
> so that compilation will succeed ?
>
> I am talking about two cases:
> In the first, we have the following definition:
> myStruct a;
>
> in the second, we have
> myStruct* a;
>
> Is it possible with both case to have a definition of f1() so that
> f1(&*a) will be correct and pass compilation ?
>
> Any ideas?



this looks like homework to me...


--
Nick Keighley



  Réponse avec citation
 
Page generated in 0,04253 seconds with 9 queries