How to get the size of string array dynamically?
<p>How can I get the size of a string array dynamically?
For example:</p>

<pre><code>string names[5] = {"John","Smith","Noob"};
</code></pre>

<p>And somehow I should get the size which is 2</p>

<p>How can I do that? without using vectors or loop?</p>
