pointers

in the syntaxes below
1.convertToDollar(&euro);
2.convertToDollar(euro);
suppose euro is an integer variable .......
what is the difference?

and:
Is this is a definition to a pointer ?
function(TECHAR* d);
euro is an int.
&euro is an int-pointer that points to euro.
1
2
3
4
int IntegerVariable; // The common variable
int * PointerToInteger; // A pointer
PointerToInteger = &IntegerVariable; // "link" them
*PointerToInteger = 5; // The "linked" variable (IntegerVariable) is now 5. 
then in functions ....if you have not used &....the program will not change the real variable in the main function ..... that is all i need to answer
Topic archived. No new replies allowed.