fork(1) download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main(void) {
  5. /* SIZE is the number of array */
  6. char (*array)[10][10+1] = malloc(5*sizeof(*array));
  7.  
  8. // Exemple
  9. strcpy(array[0][0], "hello, world");
  10. printf("%s\n", array[0][0]);
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 2424KB
stdin
Standard input is empty
stdout
hello, world