# Iso\_c\_binding: pass an array from c to fortran (Edit: python interop content)

**URL:** <https://fortran-lang.discourse.group/t/iso-c-binding-pass-an-array-from-c-to-fortran-edit-python-interop-content/514>\
**Category:** Uncategorized\
**Created:** [December 22, 2020, 4:28am UTC](https://fortran-lang.discourse.group/t/iso-c-binding-pass-an-array-from-c-to-fortran-edit-python-interop-content/514 "2020-12-22T04:28:59Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![eelis](https://avatars.discourse-cdn.com/v4/letter/e/c6cbf5/32.png) [@eelis](https://fortran-lang.discourse.group/u/eelis)\
**Post date:** [June 8, 2024, 5:44pm UTC](https://fortran-lang.discourse.group/t/iso-c-binding-pass-an-array-from-c-to-fortran-edit-python-interop-content/514/10 "2024-06-08T17:44:25Z")

</div>

I am not sure if function result can somehow be a pointer or not, but I know that if one passes an array pointer from c, it can then be accessed from fortran side. That is how I did it when communicating between Python-Fortran. (I had to use `c_ptr` type and intrinsic subroutine `c_f_pointer` on Fortran side)

Edit. Sorry, I realize now that I didn’t read your post well and I see that I didn’t answer to your question repeated what you already know.

---

_[View the full topic](https://fortran-lang.discourse.group/t/iso-c-binding-pass-an-array-from-c-to-fortran-edit-python-interop-content/514)._
