# Printing the name of an array

**URL:** <https://discourse.julialang.org/t/printing-the-name-of-an-array/32046>\
**Category:** General Usage\
**Tags:** question\
**Created:** [December 9, 2019, 12:49pm UTC](https://discourse.julialang.org/t/printing-the-name-of-an-array/32046 "2019-12-09T12:49:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![WEEZEERAE](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/weezeerae/32/8918_2.png) [@WEEZEERAE](https://discourse.julialang.org/u/WEEZEERAE)\
**Post date:** [December 9, 2019, 12:49pm UTC](https://discourse.julialang.org/t/printing-the-name-of-an-array/32046/1 "2019-12-09T12:49:10Z")

</div>

hey people,

I tried to print the name of an array, as I realized it is actually giving me out the values, i.e.:

A = [5,4,6,7]

print(A,“=”, something)

→ [5,4,6,7] = something

but i would rather have something like:  
…  
print(A,“=”, something)

→ A = something

cheers

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [December 9, 2019, 1:06pm UTC](https://discourse.julialang.org/t/printing-the-name-of-an-array/32046/2 "2019-12-09T13:06:48Z")

</div>

That is what the `@show` macro does:

```julia
help?> @show
  @show

  Show an expression and result, returning the result.

```

example:

```julia
julia> A = [5,4,6,7];

julia> @show A;
A = [5, 4, 6, 7]

```

---

<div class="post-metadata">

**Author:** ![venuur](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/venuur/32/6493_2.png) [@venuur](https://discourse.julialang.org/u/venuur)\
**Post date:** [December 9, 2019, 1:07pm UTC](https://discourse.julialang.org/t/printing-the-name-of-an-array/32046/3 "2019-12-09T13:07:00Z")

</div>

You can try `@show A` it’ll print something like what you’re describing.

---

<div class="post-metadata">

**Author:** ![WEEZEERAE](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/weezeerae/32/8918_2.png) [@WEEZEERAE](https://discourse.julialang.org/u/WEEZEERAE)\
**Post date:** [December 9, 2019, 10:53pm UTC](https://discourse.julialang.org/t/printing-the-name-of-an-array/32046/4 "2019-12-09T22:53:22Z")

</div>

thank you so much !
