Question 14954 – DSSSB TGT 2017
March 19, 2024
Question 16248 – UGC NET Dec-2020 and June-2021 Paper-2
March 19, 2024
Question 14954 – DSSSB TGT 2017
March 19, 2024
Question 16248 – UGC NET Dec-2020 and June-2021 Paper-2
March 19, 2024

Question 8909 – Structure

Following declaration of an array of struct, assumes size of byte, short, int and long are 1,2, 3 and 4 respectively. Alignment rule stipulates that n-byte field must be located at an address divisible by n, the fields in a struct are not rearranged, padding is used to ensure alignment. All elements of array should be of same size.

Struct complex

Short s

Byte b

Long l

Int i

End complex

Complex C[10]

Assuming C is located at an address divisible by 8 , what is the total size of C, in bytes?

Correct Answer: B

A
150
B
160
C
200
D
240
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!