fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6. char *nomes[] = {"joao", "maria", "pedro"};
  7.  
  8. for(int i=0; i<sizeof(nomes) / sizeof(char* ); i++) {
  9. printf("%s\n", nomes[i]);
  10. }
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
joao
maria
pedro