What's the difference between char and int in a switch case?
<p>I started C++ recently and while learning switch case, I got this doubt.<br>
What's the difference if I use int or char in the following code :<br>
<code>int Fav_Car;</code><br>
The switch case code is as follows  </p>

<pre><code>switch( Fav_Car ) {
    case '1' :
        cout&lt;&lt; "That's cool";
        break;
    case '2' :
        cout&lt;&lt; "Even mine!";
        break;
    default :
        cout&lt;&lt; "Oh";
        break;
}
</code></pre>

<p>When I ran the program, I noticed that using int returns me the default case and using char works perfectly. Why does it happen so?<br>
And also, what's the difference if I use <code>case '1' :</code> and <code>case "1" :</code></p>