I have to write the methods as C Function so as to access the object every time, I want to declare that object inside the function and allocate it. How can I maintain a common object in all C Functions. Is it Possible?
void method1
{
NSMutableArray *sample = [[NSMutableArray alloc]init];
}
void method2
{
NSMutableArray *sample = [[NSMutableArray alloc]init];
}