title: Printing 0x00 to standard output
body: <p>I have a C program. Skeleton is copied below</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  int main()
  {
      char arr[5] = {0x01,0x02,0x03,0x00,0x04};
      printf("\n%d \n",strlen(arr));
      printf("%s", arr);
      return 0;
  }
  </code></pre>
  
  <p>The value 0x00 in the char array is being treated as end of input ( NULL ) as expected and the output is
  3
  output till 0x03</p>
  
  <p>However my requirement is to print the entire array to the standard output. Can anyone let me know how i can go about it?</p>
  
  <p>Thanks</p>