* character in Objective-C

April 7, 2009 § Leave a comment

C introduces the concept of a pointer where a variable refers to a memory address rather than the data. You can dereference the memory address and to acess the data using *.

Define a pointer to an integer

int *x;

Get a memory address from integer

int x = 10;

int *xPointer = &x;

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

What’s this?

You are currently reading * character in Objective-C at Web Builders.

meta

%d bloggers like this: