how put value 0x00 to a dynamically allocated char* array in c? : <p>How can I put 0x00 value to an array that created by malloc. I tried the below code ,but it didn't work.
any response is appreciated!</p>

<pre><code>char* a = malloc(3 * sizeof(char));
*a= 0x20;
*(a+1)= 0x00;
*(a+2) = 0x32;
</code></pre>
