views:

46

answers:

1

what does & sign mean when used in objective c for example?

int i = 1;
NSData *data = [NSData dataWithBytes:&i length:sizeof(i)];
+8  A: 

It's C.

& == address of

so, &i is the "address of i".

Will Hartung