What is byte offset of a field within a structure?

Questions by pbchaudhari   answers by pbchaudhari

Showing Answers 1 - 3 of 3 Answers

ravi_529

  • Jan 22nd, 2008
 


#include <stddef.h>
offset = offsetof(type,member);

use this macro.

or
visit below link for more details.

 http://www.thinkage.ca/english/gcos/expl/c/lib/offset.html

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions