fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int* a[20][20];
  5. int b = 69;
  6. a[0][0] = &b;
  7. a[0][1] = (int *) malloc(sizeof(int));
  8. *(a[0][1]) = 18;
  9. printf("%d\n", *(a[0][0]));
  10. printf("%d\n", *(a[0][1]));
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
69
18