If I convert `const int` to `int` inside a `void` it works.  

But when I create an `extern const int` it doesn't.

```
void ReadFromEpprom()
{
  int Start = 343;
  const int End=Start; //This works
}

```

Example 2

Header File 

```
extern const int End;

```

Source file 

```
const int End;

void ReadFromEpprom()
{
  int Start = 343;
  End=Start; //This doesn't work
}

```

In second situation I get error:

> 
> (364) attempt to modify object qualified const
> 
> 
> 

How can I solve this?  

Should I make it with another way?