Advertisement
Guest User

Untitled

a guest
Dec 11th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. #define println(format,...) printf(format"\n",__VA_ARGS__)
  5. #define print(type) println(#type" %zd",sizeof(type))
  6.  
  7. int main(){
  8.  
  9.         print(void);
  10.         print(char);
  11.         print(short);
  12.         print(int);
  13.         print(float);
  14.         print(long);
  15.         print(double);
  16.         print(long long);
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement