title: Printing out a 3D array in c
body: <p>So I'm trying to printout a seven-segment display using an array with three dimensions: </p>
  
  <p>I stumble upon this post, explaining the array structure for a seven-segment display: 
  <a href="http://cboard.cprogramming.com/c-programming/94140-seven-segment-display.html" rel="nofollow">http://cboard.cprogramming.com/c-programming/94140-seven-segment-display.html</a> </p>
  
  <p>This is what I'd want to print out:</p>
  
  <pre><code>char array[9][10][20]
  </code></pre>
  
  <p>But I just can't seem to figure out how exactly to print it out. Furthermore, I'm stumped on how would I print out just one of the seven-segment numbers (for example just the '5')? </p>
  
  <p>I think that I'm going to need three for loops, but I'm just not sure how to implement the third one. Any examples that I've found are only 2d, which I kind of get, but that last dimension is confusing me.</p>
  
  <p>Any help would be greatly appreciated!</p>