does cin function add null terminated at the end of input
<p>I declare a character array: char arr[200].
Subsequently i use the function cin to read values into the arr[200].
I type into the command window line:abcd</p>

<p>Is there a null terminated:'\0' automatically added to the array at the end of the input.
(i dont think so cause i tested it using the cin function: cin>>abcd )</p>

<p>Can somebody explain it to me why</p>

<p>Below is a snippet of my code i use to test</p>

<pre><code>    char arr[200]
    int count=0;
    int i=0;
    cin&gt;&gt;arr // i type into command window:abcd

    while (arr[i] != '\0')
    {
       count++;
        i++




    }
</code></pre>

<p>my count value will not be 4 but like 43 hence i concluded that the character array is not null terminated after the cin function</p>
