3 added 1 characters in body
source | link

GiveGiven the code :

int v=42; // declaring and initializing a simple variable

int *p = &v; // creating a point p to the variable v

Following can be said about the above code:

int * p // "int pointer p" ... this is how you declare a pointer to variable of type int

*p // "pointed to by p" ... that is the data that p points to, its same as v.

&v // "address of the variable v" ... this represents the literal value for p

Give the code :

int v=42; // declaring and initializing a simple variable

int *p = &v; // creating a point p to the variable v

Following can be said about the above code:

int * p // "int pointer p" ... this is how you declare a pointer to variable of type int

*p // "pointed to by p" ... that is the data that p points to, its same as v.

&v // "address of the variable v" ... this represents the literal value for p

Given the code :

int v=42; // declaring and initializing a simple variable

int *p = &v; // creating a point p to the variable v

Following can be said about the above code:

int * p // "int pointer p" ... this is how you declare a pointer to variable of type int

*p // "pointed to by p" ... that is the data that p points to, its same as v.

&v // "address of the variable v" ... this represents the literal value for p

2 added 213 characters in body
source | link

Give the code :

int v=42; // declaring and initializing a simple variable

int *p = &v; // creating a point p to the variable v

Following can be said about the above code:

int * p // "int pointer p" ... this is how you declare a pointer to variable of type int

*p // "pointed to by p" ... that is the data that p points to  , its same as v.

&v // "address of the variable v" ... this represents the literal value for p

int * p // "int pointer p" ... this is how you declare a pointer to variable of type int

*p // "pointed to by p" ... that is the data that p points to  

&v // "address of the variable v" ... this represents the literal value for p

Give the code :

int v=42; // declaring and initializing a simple variable

int *p = &v; // creating a point p to the variable v

Following can be said about the above code:

int * p // "int pointer p" ... this is how you declare a pointer to variable of type int

*p // "pointed to by p" ... that is the data that p points to, its same as v.

&v // "address of the variable v" ... this represents the literal value for p

1
source | link

int * p // "int pointer p" ... this is how you declare a pointer to variable of type int

*p // "pointed to by p" ... that is the data that p points to

&v // "address of the variable v" ... this represents the literal value for p