Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8274427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:43:43+00:00 2026-06-08T07:43:43+00:00

I became confused when GCC allowed me to do this: int t[10][10][10][10][10]; I realize

  • 0

I became confused when GCC allowed me to do this:

int t[10][10][10][10][10];

I realize int i[N][N] is an NxN matrix where the first N means the row, and the second means the column. Also, the third N in int i[N][N][N] means depth, giving us a 3d dimensional array.

I do not understand what int i[N][N][N][N] and beyond mean.

The fourth dimension is time, but that does not apply here.

So, could this mean that when I get to the third one, I could let the logic go away?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T07:43:44+00:00Added an answer on June 8, 2026 at 7:43 am

    I find a library analogy very useful to visualizing arrays of multiple dimensions:

    • 8-dimensional array is a library
    • 7-dimensional array is a floor in a library
    • 6-dimensional array is a room on a floor in a library
    • 5-dimensional array is a bookcase in a room on a floor in a library
    • 4-dimensional array is a shelf in a bookcase in a room on a floor in a library
    • 3-dimensional array is a book on a shelf in a bookcase in a room on a floor in a library
    • 2-dimensional array is a page in a book on a shelf in a bookcase in a room on a floor in a library
    • 1-dimensional array is a line on a page in a book on a shelf in a bookcase in a room on a floor in a library
    • 0-dimensional array is a character in a line on a page in a book on a shelf in a bookcase in a room on a floor in a library
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After seeing this cocos2d topic I became confused. Do I need to install Xcode
I started reading JavaScript: The Good Parts book and became confused at first pages
I am reading Head First AJAX and became a little confused when I came
This is my first post on stackoverflow, although I've used it as a reference
Being confused again after reading about this anti-pattern and the many concerns about it
Ever since ereg became depreciated, I began to use preg_match. Unfortunately in my code,
I recently became part of a complex embedded project team for which I will
I recently became lead on getting an inordinate amount of testing done in a
I recently became interested in iPhone app development, so I've been looking at online
Recently I became the proud owner of an Android 4.0 tablet and have been

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.