Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdio>
- #define N 56
- class foo {
- public:
- int bar;
- virtual ~foo() {};
- };
- int main(void) {
- foo* tits=new foo[N];
- for (int i=0; i<N; ++i)
- tits[i].bar = i;
- long n = *((long*)tits-1);
- printf("%lu items\n",n);
- delete[] tits;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement