Anonymous user
Array length: Difference between revisions
m
→An example why it may be a bad idea in C
Line 652:
return 0;
}</lang>
<p>
As we can see the '''sizeof(ArrayType)/sizeof(ElementType)''' mostly fail.
</p>
{{output}}
<pre>directly called: sizeof(scGlobal) = 40, length = 10, pass
|