hello,
i want to pass an array and 2 more integer elements in the routine of thread in pthread in c.
i know i need to use structure for the same. i am using pointer to that structure in this case.
i need to know--- what will happen if i make changes on the array which i have passed in the routine of the thread?
will the changes reflect in the actual array. i know if we pass by reference in normal function, changes will reflect. But will it reflect in this case also? and what will happen if i make changes on those 2 integer elements?
or am i supposed to return changed array to make changes.
Drew.