What is the difference between the * and the & operators in c programming?

Posted by Wesley on Stack Overflow See other posts from Stack Overflow or by Wesley
Published on 2010-04-23T21:46:33Z Indexed on 2010/04/23 21:53 UTC
Read the original article Hit count: 172

Filed under:
|

I am just making sure I understand this concept correctly. With the * operator, I make a new variable, which is allocated a place in memory. So as to not unnecessarily duplicate variables and their values, the & operator is used in passing values to methods and such and it actually points to the original instance of the variable, as opposed to making new copies...Is that right? It is obviously a shallow understanding, but I just want to make sure I am not getting them mixed up. Thanks!

© Stack Overflow or respective owner

Related posts about c

    Related posts about operators