# Output of size(array, N) where N is greater than length(size(array))

**URL:** <https://discourse.julialang.org/t/output-of-size-array-n-where-n-is-greater-than-length-size-array/69644>\
**Category:** New to Julia\
**Tags:** arrays\
**Created:** [October 12, 2021, 8:32pm UTC](https://discourse.julialang.org/t/output-of-size-array-n-where-n-is-greater-than-length-size-array/69644 "2021-10-12T20:32:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mocalvao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mocalvao/32/19318_2.png) [@mocalvao](https://discourse.julialang.org/u/mocalvao)\
**Post date:** [October 12, 2021, 8:32pm UTC](https://discourse.julialang.org/t/output-of-size-array-n-where-n-is-greater-than-length-size-array/69644/1 "2021-10-12T20:32:43Z")

</div>

Hi there

If I create the array (matrix):

```julia
A = fill(1, (2,3))

```

and then

```julia
size(A), size(A,1), size(A,2)

```

I get what I would expect. However, if I try

```julia
size(A,3)

```

I get 1 instead of what naively I would expect now to be an error. Why is it?

In fact, for dataframes, asking for the size of a dimension beyond 2 does raise an error. Why are there these differences in behavior?

---

<div class="post-metadata">

**Author:** ![Jeff\_Emanuel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jeff_emanuel/32/15440_2.png) [@Jeff\_Emanuel](https://discourse.julialang.org/u/Jeff_Emanuel)\
**Post date:** [October 12, 2021, 8:42pm UTC](https://discourse.julialang.org/t/output-of-size-array-n-where-n-is-greater-than-length-size-array/69644/2 "2021-10-12T20:42:38Z")

</div>

Probably because you can also index an array with extra indices:[Multi-dimensional Arrays · The Julia Language](https://docs.julialang.org/en/v1/manual/arrays/#Omitted-and-extra-indices)
