Advertisement
tinyevil

Untitled

Dec 27th, 2018
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. enum Foo{
  2.     Bar(int x, char c);
  3.     Baz(int* x, int a, short p);
  4. }
  5.  
  6. struct Foo{
  7.     char tag;
  8. };
  9.  
  10. struct FooBar{
  11.     char tag;
  12.     char c;
  13.     // pad 2
  14.     int x;
  15. };
  16.  
  17. struct FooBaz{
  18.     char tag;
  19.     // pad 1
  20.     short p;
  21.     int a;
  22.     int* x;
  23. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement