What does & mean here

I came to a code portion in C that looks something like this:

int a;
scanf("%i", &a);

I know that %i seems to store the number given to a. But, what does & mean here? Is it something like pass by reference?



  • Every variable has 2 values.The lvalue and the rvalue.The lvalue is the address of the variable.The & operator is used to take the lvalue

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion