aryaxt
aryaxt

Reputation: 77596

Objective C - what does & sign mean when used in objective c?

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

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

Upvotes: 1

Views: 1706

Answers (1)

Will Hartung
Will Hartung

Reputation: 118593

It's C.

& == address of

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

Upvotes: 9

Related Questions