   Basic Reference Question
  Edit: Rediculous question[Edited by - X Abstract X on May 10, 2010 2:19:03 AM]
  Why don't you just compile it at see for yourself?(But yes, your code will do what you expect (if I am right about what you expect it to do ;) )   ;  edit.[Edited by - X Abstract X on May 10, 2010 3:31:52 AM];  You cannot reassign a reference to refer to another variable. The compiler will complain that it cannot convert int * to int. And even if you cast the pointer to an integer value, it will only assign the address of the local variable y to the variable x, becuase that's the variable ref is set to refer to.;  Oh, I get what you mean now.  I can't believe I didn't realize that references couldn't be reassigned to a different variable, I was thinking about them wrong the whole time!   ;Quote:Original post by X Abstract XEdit: Rediculous question editYou just increased the noise/signal ratio by a large amount.   