iterating in a array in C -


hey have of type

eph_t *a; 

the type eph_t can see. array in c not know size of array nor know end element of array. there way, can go through whole array because want assign values of every element in array something.

what can options consider? if not understand in question comment can inform you.

if not know size of array unsafe iterate on it. time attempt read elements beyond last 1 undefined behaviour. there nothing safe can unless know size of array.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -