Function in xcode
- by Joy
I have a function which have two global variable 1.temp-a nsmutable array 2.j-a int type variable. But i cant access any global variable inside this function.
I'm giving the code sample.
void print( NSArray *array)
{
NSEnumerator *enumerator = [array objectEnumerator];
id obj;
while ( nil!=(obj = [enumerator nextObject]) )
{
…