#include &lt;stdio.h&gt;    void main&#40;&#41;    &#123;        char *ch;        printf&#40;&quot;enter a value btw 1 to 3:&quot;&#41;;        scanf&#40;&quot;%s&quot;, ch&#41;;        switch &#40;ch&#41;        &#123;        case &quot;1&quot;:            printf&#40;&quot;1&quot;&#41;;            break;        case &quot;2&quot;:            printf&#40;&quot;2&quot;&#41;;            break;        &#125;    &#125;
A. 1
B. Compile time error
C. 2
D. Run time error
Answer:A
#include &lt;stdio.h&gt;    void main&#40;&#41;    &#123;        char *ch;        printf&#40;&quot;enter a value btw 1 to 3:&quot;&#41;;        scanf&#40;&quot;%s&quot;, ch&#41;;        switch &#40;ch&#41;        &#123;        case &quot;1&quot;:            printf&#40;&quot;1&quot;&#41;;            break;        case &quot;2&quot;:            printf&#40;&quot;2&quot;&#41;;            break;        &#125;    &#125;
A. 1 B. Compile time error C. 2 D. Run time error