Converting from a std::vector<int> to a char[] C++
<p>If I have an integer vector (std::vector) is there an easy way to convert everything in that vector to a char array(char[]) so (1,2,3) -> ('1','2','3')
This is what I have tried, but it doesn't work:</p>

<pre><code>std::vector&lt;int&gt; v;

for(int i = 1; i  &lt; 10; i++){
    v.push_back(i);
}

char *a = &amp;v[0];
</code></pre>