Getting Started with Adobe After Effects - Part 6: Motion Blur
A collection of quick technology learning tips from what people around you learn every day

c# - Is there any difference between references and pointers?

Jul 9 2011 2:26AM by Ramireddy   

Just learned from Eric Lippert's blog the difference between a "reference" and a "pointer". References are aliases names for variables and Pointers hold the address of these variables.

public int Add(ref x,ref y)
{
    return x + y;
}

The above example passes the reference of a variable into a method, which actually passes the alias name of the variable into the method.

Read More..   [12 clicks]

Published under: Microsoft .NET Tips ·  ·  ·  · 


Ramireddy
2 · 41% · 12972
3
 
4
 
 
0
Incorrect
 
0
Interesting
 
0
Forgotten



Submit

Your Comment


Sign Up or Login to post a comment.

"c# - Is there any difference between references and pointers?" rated 5 out of 5 by 3 readers
c# - Is there any difference between references and pointers? , 5.0 out of 5 based on 3 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]