[TUHS] v7 K&R C

Richard Salz rich.salz at gmail.com
Tue Apr 28 03:56:37 AEST 2020


/* struct declarations. */
struct fval;
struct gval;
struct hval;

/* function declarations */
struct fval *f();
struct gval *g();
struct hval *h();

struct fval { struct gval* (*g)(); int dummy; };
struct gval { struct hval* (*h)(); };
struct hval { void (*i)(); };

extern void test();
void test()
{
    f()->g()->h()->i();
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20200427/b8e2f9d5/attachment.html>


More information about the TUHS mailing list