Advertisement
tyler569

Untitled

Jul 27th, 2018
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1.  
  2. #define let(x) typeof(x)
  3.  
  4. struct foo {
  5.     int a, b, c, d, e, f;
  6. };
  7.  
  8. int main() {
  9.     let(int) a;
  10.     let(int[5]) b;
  11.     let(int*) x, y, z;
  12.     // yes, x, y, *and* z are of type int*.
  13.     let(struct foo) ww;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement