fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3. int main(void) {
  4. char matriz[3][5];
  5. char *aux0 = "abc", *aux1="def", *aux2="ghi";
  6. int i;
  7. strcpy(matriz[0], aux0);
  8. strcpy(matriz[1], aux1);
  9. strcpy(matriz[2], aux2);
  10. for (i=0; i<3; i++)
  11. printf("%s\n", matriz[i]);
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
abc
def
ghi