#include &lt;stdio.h&gt;    int main&#40;&#41;    &#123;        char n&#91;20&#93;;        fgets&#40;n, 19, stdin&#41;;        ungetc&#40;n&#91;0&#93;, stdin&#41;;        printf&#40;&quot;%s\n&quot;, n&#41;;        return 0;    &#125;
A. jkl
B. kl
C. Undefined behaviour
D. jk
Answer:A
#include &lt;stdio.h&gt;    int main&#40;&#41;    &#123;        char n&#91;20&#93;;        fgets&#40;n, 19, stdin&#41;;        ungetc&#40;n&#91;0&#93;, stdin&#41;;        printf&#40;&quot;%s\n&quot;, n&#41;;        return 0;    &#125;
A. jkl B. kl C. Undefined behaviour D. jk