How to access global const variable present in one file to different file
<p>This variable is defined in xyz.cpp</p>

<pre><code>const int i = 10;
</code></pre>

<p>The below main() method is written in abc.cpp</p>

<pre><code>void main()
{
    cout&lt;&lt;i; //trying to access 'i' from a different .cpp file
}
</code></pre>
