How can I convert Python tuple to C array?

PythonProgramming

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.

raja
Published on 18-Apr-2018 13:51:54
Advertisements