Meanings

* = pointer to / value of.

& = address of.

Usage

// Declares ‘a’ as integer, and sets 1.
// Declares ‘b’ as pointer to an integer, and sets address of ‘a’.
// Declares ‘c’ as integer, and sets value of ‘b’.
// Returns equality of ‘a’ and ‘c’. This is true.

int a = 1;
int* b = &a;
int c = *b;
return a==c; // Returns true.
 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>