> 
> **Possible Duplicates:**  
> 
> [Declaring pointers; asterisk on the left or right of the space between the type and name?](https://stackoverflow.com/questions/2660633/declaring-pointers-asterisk-on-the-left-or-right-of-the-space-between-the-type-a)  
> 
> [what is the difference between const int\*, const int \* const, int const \*](https://stackoverflow.com/questions/1143262/what-is-the-difference-between-const-int-const-int-const-int-const) 
> 
> 
> 

I've been wondering what is the difference between:

```
float const &var
const float &var

```

And which one of these is the correct way of writing the code? (including the above example):

```
float const& var
float const &var
float const & var

```

and with pointers:

```
float * var
float *var
float* var

```

I always put the special marks just before the variable name, feels most logical. Is that the correct way ?