fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(int argc, char const *argv[]) {
  5. int n = 5;
  6. int *p = malloc(n * sizeof(int));
  7. printf("%p = %d\n", (void *)p, n);
  8. }
  9.  
  10. //https://pt.stackoverflow.com/q/198478/101
Success #stdin #stdout 0s 4484KB
stdin
Standard input is empty
stdout
0x562b7d15d260 = 5