Hi,
I want to declare a float[] in .h and initialize in .m as explained below:
.h file
`
@interface A: NSObject
{
float data[10];
}
@end
`
.m file
@implementation A
-(void) loadData{
data={1,2,3,4,5,6,7,8,9,10};//Does not work
}
@end
I could have intialized in the following manner, but Could it be intialized in the above manner.
data[0]=1.0,.....data[9]=10.0