How can I convert Python tuple to C array?


A python tuple is essentially an immutable array of elements. This maps to C as an array. But since we work with memory directly in C and there is no construct like an immutable array in C, you cannot convert a tuple to a C array with immutable properties. What you can do is define a C array but it will be more like list than a tuple.

Updated on 30-Jul-2019 22:30:22