Re: OT: Programming in C

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bill Davidsen wrote:

Quiz for next Friday. What are these and what's the difference between them:

int     (*(**p)[])(int)
declare p as pointer to pointer to array of pointer to function (int) returning int

and
int     *(*(**p)[])(int)
declare p as pointer to pointer to array of pointer to function (int) returning pointer to int

I would really want to see both a justification of method and certificate of sanity to someone who actually used either. I can just barely justify pointer to array of function returning int (state machines), these look like something a compiler compiler would do.

I sort of recall using a pointer to an array of structs as the basic data type for anything significant in C but I've mostly forgotten why. I think sometimes it had to do with getting usable semantics to access things in shared memory segments.

--
  Les Mikesell
   lesmikesell@xxxxxxxxx

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux