#include &lt;stdio.h&gt;    #include &lt;string.h&gt;    int main&#40;&#41;    &#123;        char line&#91;3&#93;;        fgets&#40;line, 3, stdin&#41;;        printf&#40;&quot;%d\n&quot;, line&#91;2&#93;&#41;;        return 0;    &#125;
A. Compilation error
B. Undefined behaviour
C. 0
D. 10(ascii value of newline character)
Answer:A
#include &lt;stdio.h&gt;    #include &lt;string.h&gt;    int main&#40;&#41;    &#123;        char line&#91;3&#93;;        fgets&#40;line, 3, stdin&#41;;        printf&#40;&quot;%d\n&quot;, line&#91;2&#93;&#41;;        return 0;    &#125;
A. Compilation error B. Undefined behaviour C. 0 D. 10(ascii value of newline character)