# What's the right way to have an array inside the interactive shell?

**URL:** <https://root-forum.cern.ch/t/whats-the-right-way-to-have-an-array-inside-the-interactive-shell/52581>\
**Category:** Newbie\
**Created:** [December 1, 2022, 6:15pm UTC](https://root-forum.cern.ch/t/whats-the-right-way-to-have-an-array-inside-the-interactive-shell/52581 "2022-12-01T18:15:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [December 1, 2022, 8:43pm UTC](https://root-forum.cern.ch/t/whats-the-right-way-to-have-an-array-inside-the-interactive-shell/52581/2 "2022-12-01T20:43:54Z")

</div>

Maybe:

> [@I wonder why initailizing an array got an unexpected result](https://root-forum.cern.ch/t/i-wonder-why-initailizing-an-array-got-an-unexpected-result/52499/8):
>
> That’s a known issue. See [[cling,win32] Read-after-write of variable of type `double` does not yield the correct result · Issue #9809 · root-project/root · GitHub](https://github.com/root-project/root/issues/9809)

---

_[View the full topic](https://root-forum.cern.ch/t/whats-the-right-way-to-have-an-array-inside-the-interactive-shell/52581)._
