C | Structure & Union | Question 10

filter_none

edit
close

play_arrow

link
brightness_4
code

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

chevron_right


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

Don’t stop now and take your learning to the next level. Learn all the important concepts of Data Structures and Algorithms with the help of the most trusted course: DSA Self Paced. Become industry ready at a student-friendly price.

My Personal Notes arrow_drop_up