i want to read data of any type into an array....Is it possible..??
if possible how to do it..??
i want to read data of any type into an array....Is it possible..??
if possible how to do it..??
I haven't done it but you could use void pointers to point to any allocated space. That should work for any basic type, at least.
Usually, it's either text or numbers that you're dealing with, so you start with that data type, and change it to the other, if needed. This makes using C's built in functions, quite easy. You can't use them with void data, since the size of the data, is unknown. That's my opinion, I haven't tried it.