GATE 1987
December 14, 2023GATE 1994
December 14, 2023Programming
|
Question 31
|
The following C declarations
struct node
{
int i;
float j;
};
struct node *s[10];
define s to be
|
An array, each element of which is a pointer to a structure of type node
|
|
|
A structure of 2 fields, each field being a pointer to an array of 10 elements
|
|
|
A structure of 3 fields: an integer, a float, and an array of 10 elements
|
|
|
An array, each element of which is a structure of type node
|
Question 31 Explanation:
The given code represents an array of s[ ], in this each element is a pointer to structure of type node.
Correct Answer: A
Question 31 Explanation:
The given code represents an array of s[ ], in this each element is a pointer to structure of type node.
