daily pastebin goal
50%
SHARE
TWEET

Struct offset

Archon Mar 28th, 2011 137 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. struct S{
  2.   char c;
  3.   int x;
  4. };
  5.  
  6. void main(void) {
  7.   struct S s;
  8.   *(&s+1) = 10;
  9. }
RAW Paste Data
Top