Is typedef good for improving extendability
<pre><code>#include &lt;iostream&gt;
using namespace std;

typedef int num;

int main() {
    num a, b;
    cin &gt;&gt; a &gt;&gt; b;
    cout &lt;&lt; a + b;
    return 0;
}
</code></pre>

<p>In this way if I have to change this to float or a complex number by only changing one line of code. </p>

<p>Is this a good practice to do?</p>
