Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 8, 2019 00:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/5f53f10a2778b339d3900068d1738bd9 to your computer and use it in GitHub Desktop.
Save parzibyte/5f53f10a2778b339d3900068d1738bd9 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(int argc, char const *argv[])
{
int granArreglo[2][2][3] = {
{
{'H', 'o', 'l'},
{'a', ' ', 'm'},
},
{
{'u', 'n', 'd'},
{'o', '!', '!'},
},
};
for (int i = 0; i < 2; ++i)
{
for (int j = 0; j < 2; ++j)
{
for (int k = 0; k < 3; ++k)
{
printf("Estamos en [%d][%d][%d] y el valor es %c\n", i, j, k, granArreglo[i][j][k]);
}
}
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment