Need a unique gift idea?
A Pastebin account makes a great Christmas gift

Offset - solution

Archon Mar 28th, 2011 114 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. struct S{
  2.   char c;
  3.   int x;
  4. };
  6. void main(void) {
  7.   struct S s;
  8.   *(int*)((void*)&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