Question: (f) struct Epsilon { float * const *zeta; char *eta[10][12]; }; (g) typedef union { void (*theta)(); void *(*iota)(); } Kappa; (h) typedef struct Lambda

 (f) struct Epsilon { float * const *zeta; char *eta[10][12]; };

(f) struct Epsilon { float * const *zeta; char *eta[10][12]; };

(g) typedef union { void (*theta)(); void *(*iota)(); } Kappa;

(h) typedef struct Lambda { struct Lambda *mu[3]; } Nu;

(i) struct Xi { union { double pi; int rho; } sigma; enum { tau, upsilon } phi; };

(j) union Travel { float time; int space[2]; };

(k) typedef enum { WIBBLY, WOBBLY = 20, TIMEY = 25, WIMEY } Stuff;

(l) struct Poosh { void (*medusa)(); const int* cascade; };

(m) typedef struct River { char* forest; struct River* water; } Pond;

For each of the following type declarations: Briefly explain how the newly-defined datatype is organised in memory. Give an example of declaring and initialising a single variable of that type. (a) typedef enum (ALPHA, BETA 3, GAMMA, DELTA 6) Greek; (b) typedef struct Othe double x int* y[2];: struct Other z; Other (c) typedef union double const ptr int val 0ther o ) Misc (d) struct Multi ( int which union float f double d int i; data (e) typedef int const (const CallMe) (const int ): For each of the following type declarations: Briefly explain how the newly-defined datatype is organised in memory. Give an example of declaring and initialising a single variable of that type. (a) typedef enum (ALPHA, BETA 3, GAMMA, DELTA 6) Greek; (b) typedef struct Othe double x int* y[2];: struct Other z; Other (c) typedef union double const ptr int val 0ther o ) Misc (d) struct Multi ( int which union float f double d int i; data (e) typedef int const (const CallMe) (const int )

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!