daily pastebin goal
32%
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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top