Asked by Rajkishore Mishra on Jun 14, 2024

verifed

Verified

____ creates an array of 10 PayRecord structures.

A) struct (PayRecord employee) [10];
B) struct[10] PayRecord employee;
C) struct PayRecord[10] employee;
D) struct PayRecord employee[10];

PayRecord Structures

PayRecord structures are likely user-defined data types in programming that store information related to payroll or employee payment records.

Array

A data structure that can store a fixed-size sequential collection of elements of the same type.

  • Elucidate the notion and application of structure arrays.
verifed

Verified Answer

NB
Nadryll BarbatonJun 21, 2024
Final Answer :
D
Explanation :
The correct syntax in C for declaring an array of structures is by specifying the structure name followed by the array name and its size. In this case, "struct PayRecord employee[10];" correctly declares an array named 'employee' of 10 elements of the structure type 'PayRecord'.