1.

Which of the following attributes is used to specify that the minimum required memory to be used to represent the types?(a) packed(b) aligned(c) unused(d) deprecatedThe question was posed to me in final exam.My enquiry is from Pragma topic in section C Preprocessor of C

Answer»

Correct option is (a) packed

Easy explanation - The keyword __attribute__ allows you to specify SPECIAL attributes of STRUCT type. 6 attributes are currently defined for types: aligned, packed, transparent_union, unused, deprecated and may_alias. The ATTRIBUTE “packed” is used to specify that the minimum required memory to be used to represent the types.



Discussion

No Comment Found

Related InterviewSolutions