title: For any string "char name[10]="test"",is strlen(name)+1 always guaranteed to be same as sizeof(name)?
body: <p>For a string <code>name[]</code>,can we use <code>strlen(name)+1</code> and <code>sizeof(name)</code> <strong>interchangeably</strong> in our code without second thought?Aren't they same?I checked about it and found out even the return type for both is same,<code>size_t</code>.And after all <code>sizeof</code> calculates the size as a multiple of bytes and a character occupies one byte, while <code>strlen()</code> calculates the number of characters excluding the <code>\0</code> due to which we have to add a 1 to equate it to the result of <code>sizeof</code>.</p>
  
  <p>So unless the size of the character is something other than 1 byte,aren't the two interchangeable and same for all practical purposes?Like while allocating dynamic memory for example....</p>