fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. int x;
  6. double y;
  7. char c;
  8. int *p;
  9.  
  10. x = 10;
  11. c = 'A';
  12. y = 5.0;
  13. p = &x;
  14.  
  15. printf("int: %ld" , sizeof(int));
  16. printf("char: %ld", sizeof(char));
  17. printf("double %ld", sizeof(double));
  18. printf("(int *) %ld", sizeof(int *));
  19.  
  20. printf("\n%p", p);
  21. printf("\n%p", &x);
  22. printf("\n%d", *p);
  23.  
  24. return 0;
  25. }
  26.  
Success #stdin #stdout 0s 5328KB
stdin
Standard input is empty
stdout
int: 4char: 1double 8(int *) 8
0x7ffc0af64614
0x7ffc0af64614
10