# C Interface -- How to store an element in a C array

**URL:** <https://discourse.julialang.org/t/c-interface-how-to-store-an-element-in-a-c-array/22156>\
**Category:** General Usage\
**Created:** [March 21, 2019, 5:22pm UTC](https://discourse.julialang.org/t/c-interface-how-to-store-an-element-in-a-c-array/22156 "2019-03-21T17:22:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)\
**Post date:** [March 21, 2019, 5:43pm UTC](https://discourse.julialang.org/t/c-interface-how-to-store-an-element-in-a-c-array/22156/2 "2019-03-21T17:43:34Z")

</div>

Just as a general piece of advice, you will have a _much_ easier time upgrading code if you take the time to go through every Julia version, rather than skipping all the way to 1.0. If the code was written for Julia v0.5, then I would suggest:

- Test with 0.5
- Test with 0.6 and fix any deprecation warnings
- Test with 0.7 and fix any deprecation warnings
- Test with 1.0

That way you’ll get precise deprecation messages that tell you how to change the code, rather than just having to guess what functions that no longer exist used to do.

See also [PSA: use Julia 0.7 if you are upgrading](https://discourse.julialang.org/t/psa-use-julia-0-7-if-you-are-upgrading/13321)

---

_[View the full topic](https://discourse.julialang.org/t/c-interface-how-to-store-an-element-in-a-c-array/22156)._
