The following C declarations: struct node { int i; float j; }; struct node…

GATE · 2000 · CS · Question 1 subparts

The following C declarations:

struct node {
int i;
float j;
};
struct node *s[10];

define s to be:

  1. A.

    An array, each element of which is a pointer to a structure of type node

  2. B.

    A structure of 2 fields, each field being a pointer to an array of 10 elements

  3. C.

    A structure of 3 fields: an integer, a float, and an array of 10 elements

  4. D.

    An array, each element of which is a structure of type node.

Attempted by 493 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…