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