x=y; and (*x)=(*y);

Apr 16, 2010 at 4:35pm
What is the difference?
Apr 16, 2010 at 4:42pm
x = y is assigning the value of y to x
*x = *y is assigning the value pointed by y to the value pointed by x
Apr 16, 2010 at 8:28pm
*x = *y...
This is assuming that x and y are pointers, right? You'll get an 'illegal indirection' error or something if you try and do this with normal variables.
Topic archived. No new replies allowed.