fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char a[3];
  5. double b;
  6. int c[2];
  7.  
  8. printf("char a[3]:%lu:%p\n",sizeof(a),&a);
  9. printf("double b:%lu:%p\n",sizeof(b),&b);
  10. printf("int c[2]:%lu:%p\n",sizeof(c),&c);
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
char a[3]:3:0x7ffcb9777c35
double b:8:0x7ffcb9777c20
int c[2]:8:0x7ffcb9777c2c