fork download
  1. int main()
  2. {
  3. char frutas[5][20] = {
  4. "Açaí",
  5. "Acerola",
  6. "Abacate",
  7. "Abacaxi",
  8. "Ameixa"
  9. };
  10.  
  11. int size_elements = sizeof(frutas)/20;
  12. int i;
  13.  
  14. printf("Total Elementos Matriz: %d\n", size_elements);
  15.  
  16. for(i = 0; i<size_elements; i++){
  17. printf("%s\n", frutas[i]);
  18. }
  19.  
  20. return 0;
  21. }
Success #stdin #stdout 0s 4560KB
stdin
Standard input is empty
stdout
Total Elementos Matriz: 5
Açaí
Acerola
Abacate
Abacaxi
Ameixa