C | Structure & Union | Question 10
struct node { int i; float j; }; struct node *s[10]; |
chevron_right
filter_none
The above C declaration define ‘s’ to be (GATE CS 2000)
(A) An array, each element of which is a pointer to a structure of type node
(B) A structure of 2 fields, each field being a pointer to an array of 10 elements
(C) A structure of 3 fields: an integer, a float, and an array of 10 elements
(D) An array, each element of which is a structure of type node.
Answer: (A)
Explanation: Refer Structures in C.
Quiz of this Question
Recommended Posts:
- C | Structure & Union | Question 10
- C | Structure & Union | Question 7
- C | Structure & Union | Question 1
- C | Structure & Union | Question 2
- C | Structure & Union | Question 9
- C | Structure & Union | Question 8
- C | Structure & Union | Question 6
- C | Structure & Union | Question 4
- C | Structure & Union | Question 5
- Anonymous Union and Structure in C
- Difference between Structure and Union in C
- Output of C programs | Set 44 (Structure & Union)
- Output of C++ programs | Set 41 (Structure and Union)
- Union in C
- C | Loops & Control Structure | Question 11



