Is it better to use arithmetic operators in 'int' format, for example
;
OR this example which I have gotten use to.
It almost feels like I should convert them to ints before arithmetic operation
Is their a difference, or proper way?
Code:
int x,y,z;
x = y + z;
OR this example which I have gotten use to.
Code:
int x;
x = ([textFieldOne intValue] + [textFieldTwo intValue]);
Code:
int x,y,z;
y = [textFieldOne intValue];
z = [textFieldTwo intValue];
x = y + z;
Is their a difference, or proper way?