I have defined double variable for my .h class like this
double *i;
double *j;
double *k;
Now I call that variable in my .m file like this
i = j+k;
but its showing error like this,
invalid operands to binary expression 'double' and 'double'
I’m new to iPhone and objective c environment guide me how can I call that.
Remember that Objective C is a superset of C. So primitive data types (int, float, double) remain primitive. Try without pointers: