using a variable to store an analog pin number

roosterqmoney:
so just to make sure i understand this fully, "A0" is just a variable that the ide already recognises as analog pin 0, and i can store it as an int even though it contains a letter?

Yes, that's exactly what I showed you in my last reply. Give it a try.

Wawa:
AFAIK the letter A is ignored.

No, it's not ignored. It's just a variable name. On the Uno the value of the A0 variable is 14. You can use the analog channel number as the argument to analogRead(). So these are equivalent:
analogRead(A0);
analogRead(0);
analogRead(14);

But you can also use A0 for digital IO. These are not equivalent:
digitalRead(A0);
digitalRead(0);

The first reads pin A0. The second reads pin 0. I think code is the most clear and consistent when the An pin names are used rather than the channel number.