# How can i make Julia array index to start from zero 0 and not from one 1?

**URL:** <https://discourse.julialang.org/t/how-can-i-make-julia-array-index-to-start-from-zero-0-and-not-from-one-1/129268>\
**Category:** New to Julia\
**Tags:** offsetarrays\
**Created:** [May 23, 2025, 9:21am UTC](https://discourse.julialang.org/t/how-can-i-make-julia-array-index-to-start-from-zero-0-and-not-from-one-1/129268 "2025-05-23T09:21:28Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![roflmaostc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/roflmaostc/32/30123_2.png) [@roflmaostc](https://discourse.julialang.org/u/roflmaostc)\
**Post date:** [May 23, 2025, 12:06pm UTC](https://discourse.julialang.org/t/how-can-i-make-julia-array-index-to-start-from-zero-0-and-not-from-one-1/129268/5 "2025-05-23T12:06:51Z")

</div>

This question always opens up an endless topic which has been [discussed many times](https://discourse.julialang.org/search?q=1%20based%20indexing).

So it’s better not to further dig-in again

> [@What's the big deal? 0 vs 1 based indexing](https://discourse.julialang.org/t/whats-the-big-deal-0-vs-1-based-indexing/1102):
>
> As an engineer coming from a non CS / EE background, I have no strong preference or use for 0 based indexing. In fact, 1 based indexing seems incredibly intuitive to me when I use Julia to work with data and manipulate arrays with loops, etc. for me, this aspect of Julia is a big plus. I find lots of hate though on the web for Julia on this point. Why? Is it just a question of familiarity / code comparability, or are their underlying reasons I am missing?

Personally I am not a big user of Offset-Arrays since it’s not consistently working across the entire Julia ecosystem, so take it with caution, as mentioned above.

---

_[View the full topic](https://discourse.julialang.org/t/how-can-i-make-julia-array-index-to-start-from-zero-0-and-not-from-one-1/129268)._
