1.

The macro offset expands to a constant of type __________________(a) size_t(b) print_t(c) ptrdiff_t(d) nullThis question was posed to me in class test.Query is from Standard Definition in division C Library of C

Answer»

The CORRECT CHOICE is (a) size_t

Easiest explanation - offsetof EXPANDS to a constant of TYPE size_t. It retuns the offset of the FIELD member from the start to of the structure type.



Discussion

No Comment Found

Related InterviewSolutions