- It is Denoted by '&'
- When used as a prefix to a variable name '&' operator gives the address of that variable.
| &n | Gives address on n |
| No | Invalid Use of Address Operator |
| 1 | &75 |
| 2 | &(a+b) |
| 3 | &('a') |
// How Address Operator works ? #includevoid main() { int a = 10; printf("\n Value of n is : %d ",n); printf("\n Value of &n is : %u ",&n); }
Output :
Value of n is : 10 Value of &n is : 1002
Bookmark & Share


2 Comments:
It would be nice if you could post an example of using pointers in C. This would explain the use of this operator in a better way.
Thanks Kevin Rodrigues , I will Post Examples to digest pointer concept easily
Post a Comment
Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email