fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int n = 10;
  6. int array[n];
  7. char *p;
  8.  
  9. printf("%#p\n", array);
  10. p = malloc(10);
  11. printf("%#p %#p\n", &p, p);
  12. free(p);
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0.01s 1808KB
stdin
Standard input is empty
stdout
0xbf966bd0
0xbf966c20 0x8ada008